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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cce6eccb4c8e13802da1576823bd80d4462d651eb383e0e8fedd0c2d9e9dc6e8
4
- data.tar.gz: 96617f42c8b05043a26ded3e6e27b4301e74c10583ba0e7d410c6210f7343d22
3
+ metadata.gz: 9c2b21b1b1384736127c873d59e0466836e57f8fac7847040048be7a6bb9d7c1
4
+ data.tar.gz: c89fc1163a3674d93201650ef24f99c2e8b33edc6ad81cc93a7f299422c5531b
5
5
  SHA512:
6
- metadata.gz: b2840c16a19b82f02de62d911875d3dd5f76b210cff316b558b6b165ca6ff4b2a683bea92c0ce3d6cf8d4ff69191144c5a6dc1133a86f133060a136ac21ed250
7
- data.tar.gz: f3f7e6afee0f76826fc77a1f2704855267c6aef89348f470748e1ec76a8d534ab6d4bb62d15ff2065007f2956d104372e57063ac34a0d71c3f9c9a34baa44c93
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 gem file to look like this:
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]}" if 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)
@@ -3,7 +3,7 @@
3
3
  module Kitchen
4
4
  module Yansible
5
5
  module Pusher
6
- VERSION = "0.1.0"
6
+ VERSION = "0.1.3"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-yansible-pusher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose M. Tobar