kitchen-ansiblepush 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/kitchen/provisioner/ansible_push.rb +3 -4
- data/lib/kitchen-ansible/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0c2574c5f3a6f5e72041eff1b93bdc9f58b9cdb4
|
|
4
|
+
data.tar.gz: 87261f0b8a379618e4b4450bb37a12ab5cf1a7aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d203dcf0add9038341bdab6b1edef6e90709d45576e639706697f39513037382066c3a6e7d575c93b7e702a22ddbb445f56c1d857ed73db5208cc29cb1853922
|
|
7
|
+
data.tar.gz: b145ccbb8a988f4000b45459d91cd72590190fd0c9e3a4ee4615a96b0ad2078184f01d033d0912c5246b865101e87406f23052693169f013de6f2f14f37dde04
|
data/README.md
CHANGED
|
@@ -20,7 +20,7 @@ gem install kitchen-ansiblepush
|
|
|
20
20
|
git clone git@github.com:ahelal/kitchen-ansiblepush.git
|
|
21
21
|
cd kitchen-ansiblepush
|
|
22
22
|
gem build kitchen-ansiblepush.gemspec
|
|
23
|
-
|
|
23
|
+
gem install kitchen-ansiblepush-<version>.gem
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
## kitchen.yml Options
|
|
@@ -41,7 +41,7 @@ module Kitchen
|
|
|
41
41
|
|
|
42
42
|
def prepare_command
|
|
43
43
|
validate_config
|
|
44
|
-
prepare_inventory
|
|
44
|
+
prepare_inventory if config[:generate_inv]
|
|
45
45
|
complie_config
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -115,12 +115,12 @@ module Kitchen
|
|
|
115
115
|
exit_code = $?.exitstatus
|
|
116
116
|
debug("ansible-playbook exit code = #{exit_code}")
|
|
117
117
|
if exit_code.to_i != 0
|
|
118
|
-
raise "%s returned a non
|
|
118
|
+
raise "%s returned a non zero '%s'. Please see the output above." % [ desc, exit_code.to_s ]
|
|
119
119
|
end
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
def prepare_inventory
|
|
123
|
-
@machine_name = instance.
|
|
123
|
+
@machine_name = instance.name.gsub(/[<>]/, '').split("-").drop(1).join("-")
|
|
124
124
|
@instance_connection_option = instance.transport.instance_variable_get(:@connection_options)
|
|
125
125
|
hostname = @instance_connection_option[:hostname]
|
|
126
126
|
debug("instance_connection_option=" + @instance_connection_option.to_s)
|
|
@@ -164,7 +164,6 @@ module Kitchen
|
|
|
164
164
|
"ANSIBLE_HOST_KEY_CHECKING" => "#{config[:host_key_checking]}",
|
|
165
165
|
}
|
|
166
166
|
@command_env["ANSIBLE_CONFIG"]=config[:ansible_config] if config[:ansible_config]
|
|
167
|
-
|
|
168
167
|
info("Ansible push compile conig done")
|
|
169
168
|
end
|
|
170
169
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kitchen-ansiblepush
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adham Helal
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-06-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: test-kitchen
|