kitchen-ansiblepush 0.3.10 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/callback/changes.py +0 -1
- data/lib/kitchen-ansible/version.rb +1 -1
- data/lib/kitchen/provisioner/ansible_push.rb +6 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70b6df9e304bd8bb431e246279a24c44603b9557
|
4
|
+
data.tar.gz: 837be1b097c39fa7c12287fb056d5a1c9df8eee9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52957dc93c327c9d1b0223ad280226f3361a3591cc94783bd0fd65180d1d18378c4d8d171b376e50e0d5531e771ae92404800014719da80836c9b878f19ddfcd
|
7
|
+
data.tar.gz: ef3146e472217508e6abe909c89a199393e123674b3f10cf3596d65d46299bd72c3880125871b83e23140ad9bf528baf6ad48c5f8a81b869e849987df88b2209
|
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# kitchen-ansiblepush
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/kitchen-ansiblepush.svg)](https://badge.fury.io/rb/kitchen-ansiblepush)
|
2
3
|
|
3
4
|
A test-kitchen plugin that adds the support for ansible in push mode
|
4
5
|
|
@@ -49,7 +50,8 @@ provisioner :
|
|
49
50
|
vault_password_file : "/..../file"
|
50
51
|
host_key_checking : false
|
51
52
|
generate_inv : true
|
52
|
-
|
53
|
+
use_instance_name : false # use short (platform) instead of instance name by default
|
54
|
+
|
53
55
|
```
|
54
56
|
## idempotency test
|
55
57
|
If you want to check your code is idempotent you can use the idempotency_test. Essentially, this will run Ansible twice and check nothing changed in the next run. If something changed it will list the tasks. Note: If your using Ansible callback in your config this might conflict.
|
data/callback/changes.py
CHANGED
@@ -40,6 +40,7 @@ module Kitchen
|
|
40
40
|
default_config :raw_arguments, nil
|
41
41
|
default_config :idempotency_test, false
|
42
42
|
default_config :fail_non_idempotent, true
|
43
|
+
default_config :use_instance_name, false
|
43
44
|
|
44
45
|
# For tests disable if not needed
|
45
46
|
default_config :chef_bootstrap_url, "https://www.getchef.com/chef/install.sh"
|
@@ -88,7 +89,11 @@ module Kitchen
|
|
88
89
|
|
89
90
|
def machine_name
|
90
91
|
return @machine_name if defined? @machine_name
|
91
|
-
|
92
|
+
unless config[:use_instance_name]
|
93
|
+
@machine_name = instance.name.gsub(/[<>]/, '').split("-").drop(1).join("-")
|
94
|
+
else
|
95
|
+
@machine_name = instance.name.gsub(/[<>]/, '')
|
96
|
+
end
|
92
97
|
debug("machine_name=" + @machine_name.to_s)
|
93
98
|
@machine_name
|
94
99
|
end
|
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.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adham Helal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project: '[none]'
|
98
|
-
rubygems_version: 2.0.14
|
98
|
+
rubygems_version: 2.0.14.1
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: ansible provisioner for test-kitchen
|