kitchen-yansible-pusher 0.1.0 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -1
- data/lib/kitchen/provisioner/yansible_pusher.rb +3 -1
- data/lib/kitchen/yansible/pusher/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c2b21b1b1384736127c873d59e0466836e57f8fac7847040048be7a6bb9d7c1
|
4
|
+
data.tar.gz: c89fc1163a3674d93201650ef24f99c2e8b33edc6ad81cc93a7f299422c5531b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7d78b75e17df46a1767a184b7122c42dbf9b27b1edb4498588d3c86d6a695c4aed06d2cea7e65f59d2dbbd02b6bbf9a2d065806424a22be2b53b2a879c9e7d1
|
7
|
+
data.tar.gz: 3408cc60e8ebdc4f913ec4e20999fd9049d2ddd00ec1788b656482599d64f05f384fe59cdacc11fc7eb4215a5647a6d7abe69d240819b95b9b605813c274a34c
|
data/README.md
CHANGED
@@ -12,20 +12,31 @@ By doing less, and expecting the user to install their own Ansible, provide thei
|
|
12
12
|
|
13
13
|
## Installation
|
14
14
|
|
15
|
-
Edit your
|
15
|
+
Edit your Gemfile to look like this, or install it like this `gem install kitchen-yansible-pusher`
|
16
16
|
|
17
17
|
```ruby
|
18
18
|
# Install from Github
|
19
19
|
gem 'kitchen-yansible-pusher',
|
20
20
|
git: 'https://github.com/jmtx1020/kitchen-yansible-pusher.git',
|
21
21
|
branch: 'main'
|
22
|
+
|
23
|
+
# Install via RubyGems
|
24
|
+
gem 'kitchen-yansible-pusher', '~> 0.1.0'
|
22
25
|
```
|
23
26
|
|
24
27
|
## Usage
|
25
28
|
|
26
29
|
Keeping simplicity in mind, this kitchen-provisioner has minimal options to get going.
|
27
30
|
```yaml
|
31
|
+
---
|
32
|
+
driver:
|
33
|
+
name: docker
|
34
|
+
|
35
|
+
platforms:
|
36
|
+
- name: ubuntu-22.04
|
37
|
+
|
28
38
|
provisioner:
|
39
|
+
name: yansible_pusher
|
29
40
|
playbook: "/path/to/playbook.yaml"
|
30
41
|
config: "/path/to/ansible.cfg"
|
31
42
|
extra_vars:
|
@@ -41,6 +52,10 @@ provisioner:
|
|
41
52
|
vault_password_file: "/path/to/vault.password"
|
42
53
|
username: username
|
43
54
|
private_key: "/path/to/private.key"
|
55
|
+
|
56
|
+
suites:
|
57
|
+
- name: default
|
58
|
+
|
44
59
|
```
|
45
60
|
|
46
61
|
## Contributing
|
@@ -148,10 +148,12 @@ module Kitchen
|
|
148
148
|
state = instance.transport.instance_variable_get(:@connection_options)
|
149
149
|
cmd << "--private-key #{state[:keys][0]}"
|
150
150
|
end
|
151
|
+
cmd
|
151
152
|
end
|
152
153
|
|
153
154
|
def ansible_use_vault_password_file(cmd)
|
154
|
-
cmd << "--vault-password-file #{config[:vault_password_file]}"
|
155
|
+
cmd << "--vault-password-file #{config[:vault_password_file]}" unless config[:vault_password_file].nil?
|
156
|
+
cmd
|
155
157
|
end
|
156
158
|
|
157
159
|
def ansible_verbosity(cmd)
|