Skip to content

Commit

Permalink
Merge branch 'master' into task-add-git-ssh-deploykeys
Browse files Browse the repository at this point in the history
  • Loading branch information
jzandbergen committed Oct 28, 2020
2 parents 1c6b8b3 + 91fc0be commit 95195af
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions docs/provisioner_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,12 @@ The result would be:
|- baz
|- [contents of qux]

### pillar_env ###

default: `nil`

Environment to use in minion config file for the pillar root, if different from `salt_env`.

## Install Salt ##

### salt_install ###
Expand Down
2 changes: 1 addition & 1 deletion lib/kitchen/provisioner/minion.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ file_roots:
- <%= os_join(config[:root_path], config[:salt_spm_root], 'salt') %>

pillar_roots:
<%= config[:salt_env] %>:
<%= config[:pillar_env] || config[:salt_env] %>:
- <%= os_join(config[:root_path], config[:salt_pillar_root]) %>
- <%= os_join(config[:root_path], config[:salt_spm_root], 'pillar') %>

Expand Down
1 change: 1 addition & 0 deletions lib/kitchen/provisioner/salt_solo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class SaltSolo < Base
is_file_root: false,
local_salt_root: nil,
omnibus_cachier: false,
pillar_env: nil,
pillars_from_directories: [],
pip_bin: 'pip',
pip_editable: false,
Expand Down
9 changes: 7 additions & 2 deletions lib/kitchen/verifier/nox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,14 @@ def call(state)
if config[:windows]
if config[:zip_windows_artifacts]
begin
conn.execute("powershell Compress-Archive #{remote} #{remote}artifacts.zip -Force")
conn.execute("7z.exe a #{remote}artifacts.zip #{remote}")
rescue => e
error("Failed to create zip")
begin
info("7z.exe failed, attempting zip with powershell Compress-Archive")
conn.execute("powershell Compress-Archive #{remote} #{remote}artifacts.zip -Force")
rescue => e2
error("Failed to create zip")
end
end
end
else
Expand Down

0 comments on commit 95195af

Please sign in to comment.