kitchen-yansible-pusher 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/kitchen/provisioner/yansible_pusher.rb +10 -12
- data/lib/kitchen/yansible/pusher/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11fa36391470d9fc69222ba0009831a25af5cf03942eeba49b515df133d2f0d8
|
4
|
+
data.tar.gz: f7ec2a2c220c897e221cd1233686f223133898f93e634e27d9fcc77cbeb1cd3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbdfb4d9258cc47e26c2414a732e84c717a65bec8b072a4472a9bab7623caeca160c14d1c72141b8f72ae034275be3e8c30a7b8660482becae2e6ca1c5a11244
|
7
|
+
data.tar.gz: 5bae348c9fc6d424c24ff4f27aa92133bf390774418b5bd06dd86d4fa994dbcc49e19dd2a0bc86ce13746030989df6a35471bee046488697aa840b470221d527
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v0.3.1](https://github.com/jmtx1020/kitchen-yansible-pusher/tree/v0.3.1) (2024-09-04)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/jmtx1020/kitchen-yansible-pusher/compare/v0.3.0...v0.3.1)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- throw error on error code [\#14](https://github.com/jmtx1020/kitchen-yansible-pusher/pull/14) ([jmtx1020](https://github.com/jmtx1020))
|
10
|
+
|
3
11
|
## [v0.3.0](https://github.com/jmtx1020/kitchen-yansible-pusher/tree/v0.3.0) (2024-09-04)
|
4
12
|
|
5
13
|
[Full Changelog](https://github.com/jmtx1020/kitchen-yansible-pusher/compare/v0.2.0...v0.3.0)
|
@@ -4,6 +4,7 @@ require 'kitchen/provisioner/base'
|
|
4
4
|
require 'kitchen/errors'
|
5
5
|
require_relative '../yansible/pusher/version'
|
6
6
|
require 'yaml'
|
7
|
+
require 'English'
|
7
8
|
|
8
9
|
module Kitchen
|
9
10
|
module Provisioner
|
@@ -72,8 +73,8 @@ module Kitchen
|
|
72
73
|
def run_ansible
|
73
74
|
command = build_ansible_command
|
74
75
|
info("Running Ansible Command: #{command}")
|
75
|
-
system(command)
|
76
|
-
raise Kitchen::ActionFailed, 'Ansible playbook execution failed' unless
|
76
|
+
system(ansible_env_vars, command)
|
77
|
+
raise Kitchen::ActionFailed, 'Ansible playbook execution failed' unless $CHILD_STATUS.success?
|
77
78
|
end
|
78
79
|
|
79
80
|
def create_inventory
|
@@ -146,8 +147,6 @@ module Kitchen
|
|
146
147
|
|
147
148
|
def ansible_options
|
148
149
|
%i[
|
149
|
-
ansible_config
|
150
|
-
ansible_env_vars
|
151
150
|
ansible_use_private_key
|
152
151
|
ansible_use_vault_password_file
|
153
152
|
ansible_extra_flags
|
@@ -157,14 +156,13 @@ module Kitchen
|
|
157
156
|
]
|
158
157
|
end
|
159
158
|
|
160
|
-
def
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
cmd
|
159
|
+
def ansible_env_vars
|
160
|
+
env = ENV.to_h.dup
|
161
|
+
config[:env_vars]&.each do |key, value|
|
162
|
+
env[key.to_s] = value.to_s unless value.nil?
|
163
|
+
end
|
164
|
+
env['ANSIBLE_CONFIG'] = config[:config] unless config[:config].nil?
|
165
|
+
env
|
168
166
|
end
|
169
167
|
|
170
168
|
def ansible_extra_flags(cmd)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-yansible-pusher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jose M. Tobar
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A modern & minimalistic Ansible provisioner for Test Kitchen.
|
14
14
|
email:
|