kitchen-salt 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/kitchen-salt/version.rb +1 -1
- data/lib/kitchen/provisioner/salt_solo.rb +15 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzYwM2Q5ZTRjOTdkYjRmZTQ2NjhkMTE3YWNhN2E4N2JmYTNlOWQ4Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWI2NDczNzlmNmNkNjM0M2E4ODFjMGYyYjQ3ZTFiZTg3MzVlZGE0OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTkwOGQ1MGQ3Njc0NDhhZDI3NDM0M2Q1ZTk2ODRiMDkyMTY4Y2I3NjgxMjZh
|
10
|
+
MGRkZTBlZGVhMTE3NDRiMjg0N2E3ODA5OTFkYzUzYjVlNDYwOTUwYTRmODYy
|
11
|
+
YzU0YzQ4NDc5MDVjZmM2YmQ1NzhhNzIyYzZhOWQyNDZkOGI5Nzc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjJkZWYyMDZlMTg2YTBjNDYyMTk1NDY3YzFjMzJkYWM1MjAxNGNmMDM0NjFm
|
14
|
+
YmU0YmQ0YjMzYzg5ZWQ0NTQyMjM4ZGQzYjljZmM4Y2Q5ZTRlNjkzOWM3NGRm
|
15
|
+
ODA2OGIxNjZjZTQ1ZDBjZmFjZjBiNjQzMGI3MTc5MzgyYjdhZDA=
|
data/lib/kitchen-salt/version.rb
CHANGED
@@ -133,9 +133,8 @@ module Kitchen
|
|
133
133
|
end
|
134
134
|
|
135
135
|
def init_command
|
136
|
-
debug("
|
137
|
-
|
138
|
-
"#{sudo('rm')} -rf #{data} ; mkdir -p #{config[:root_path]}"
|
136
|
+
debug("Initialising Driver #{self.name} by cleaning #{config[:root_path]}")
|
137
|
+
"#{sudo('rm')} -rf #{config[:root_path]} ; mkdir -p #{config[:root_path]}"
|
139
138
|
end
|
140
139
|
|
141
140
|
def run_command
|
@@ -276,6 +275,19 @@ module Kitchen
|
|
276
275
|
FileUtils.mkdir_p(formula_dir)
|
277
276
|
FileUtils.cp_r(Dir.glob(File.join(config[:kitchen_root], config[:formula], "*")), formula_dir)
|
278
277
|
|
278
|
+
# copy across the _modules etc directories for python implementation
|
279
|
+
['_modules', '_states', '_grains', '_renderers', '_returners'].each do |extrapath|
|
280
|
+
src = File.join(config[:kitchen_root], extrapath)
|
281
|
+
|
282
|
+
if (File.directory?(src))
|
283
|
+
debug("prepare_formula: #{src} exists, copying..")
|
284
|
+
extrapath_dir = File.join(sandbox_path, config[:salt_file_root], extrapath)
|
285
|
+
FileUtils.mkdir_p(extrapath_dir)
|
286
|
+
FileUtils.cp_r(Dir.glob(File.join(src, "*")), extrapath_dir)
|
287
|
+
else
|
288
|
+
debug("prepare_formula: #{src} doesn't exist, skipping.")
|
289
|
+
end
|
290
|
+
end
|
279
291
|
end
|
280
292
|
|
281
293
|
def prepare_state_collection
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-salt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon McCartney
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: salt provisioner for test-kitchen
|
14
14
|
email:
|