kitchen-yansible-pusher 0.3.2 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/lib/kitchen/provisioner/yansible_pusher.rb +5 -3
- 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: f564803a26b2e5dcf9445c6d484e6583e4a24d06462814c76c77c67f71ea8438
|
4
|
+
data.tar.gz: b4f532188c194fcd835d9cd826d58a39ad3a5cf66d94659d999e1d22e522aa1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4247120a0d5d4ff83da5aefbd67e4b862c906072b6d0cbd3373065982cb0b43890078f7c1d043f031d96d02f5091bdd904113e15c85e5b7c3ecac9eaad1f269
|
7
|
+
data.tar.gz: 2741cafc49f5e129c6583fa35c95465e07b24b28c6e09e9f14df065972574faafae3f9706db8b6c3205f6010f6481b1f4a23c4786c9bc63c7827f475584d0a83
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [Unreleased](https://github.com/jmtx1020/kitchen-yansible-pusher/tree/HEAD)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/jmtx1020/kitchen-yansible-pusher/compare/v0.3.3...HEAD)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- fixed issue where Ansibles output was not being preserved in kitchen logs [\#17](https://github.com/jmtx1020/kitchen-yansible-pusher/pull/17) ([jmtx1020](https://github.com/jmtx1020))
|
10
|
+
|
11
|
+
## [v0.3.3](https://github.com/jmtx1020/kitchen-yansible-pusher/tree/v0.3.3) (2024-09-10)
|
12
|
+
|
13
|
+
[Full Changelog](https://github.com/jmtx1020/kitchen-yansible-pusher/compare/v0.3.2...v0.3.3)
|
14
|
+
|
15
|
+
**Merged pull requests:**
|
16
|
+
|
17
|
+
- update: set default verbosity level to 0 [\#16](https://github.com/jmtx1020/kitchen-yansible-pusher/pull/16) ([jmtx1020](https://github.com/jmtx1020))
|
18
|
+
|
19
|
+
## [v0.3.2](https://github.com/jmtx1020/kitchen-yansible-pusher/tree/v0.3.2) (2024-09-05)
|
20
|
+
|
21
|
+
[Full Changelog](https://github.com/jmtx1020/kitchen-yansible-pusher/compare/v0.3.1...v0.3.2)
|
22
|
+
|
23
|
+
**Merged pull requests:**
|
24
|
+
|
25
|
+
- feature: move env vars to system env hash [\#15](https://github.com/jmtx1020/kitchen-yansible-pusher/pull/15) ([jmtx1020](https://github.com/jmtx1020))
|
26
|
+
|
3
27
|
## [v0.3.1](https://github.com/jmtx1020/kitchen-yansible-pusher/tree/v0.3.1) (2024-09-04)
|
4
28
|
|
5
29
|
[Full Changelog](https://github.com/jmtx1020/kitchen-yansible-pusher/compare/v0.3.0...v0.3.1)
|
@@ -5,6 +5,7 @@ require 'kitchen/errors'
|
|
5
5
|
require_relative '../yansible/pusher/version'
|
6
6
|
require 'yaml'
|
7
7
|
require 'English'
|
8
|
+
require 'mixlib/shellout'
|
8
9
|
|
9
10
|
module Kitchen
|
10
11
|
module Provisioner
|
@@ -33,7 +34,7 @@ module Kitchen
|
|
33
34
|
default_config :extra_flags, []
|
34
35
|
default_config :tags, []
|
35
36
|
default_config :skip_tags, []
|
36
|
-
default_config :verbosity,
|
37
|
+
default_config :verbosity, 0
|
37
38
|
default_config :vault_password_file, nil
|
38
39
|
default_config :username, nil
|
39
40
|
default_config :private_key, nil
|
@@ -73,8 +74,9 @@ module Kitchen
|
|
73
74
|
def run_ansible
|
74
75
|
command = build_ansible_command
|
75
76
|
info("Running Ansible Command: #{command}")
|
76
|
-
|
77
|
-
|
77
|
+
cmd = Mixlib::ShellOut.new(command, :environment => ansible_env_vars(), :live_stream => logger)
|
78
|
+
cmd.run_command
|
79
|
+
raise Kitchen::ActionFailed, 'Ansible playbook execution failed' unless cmd.exitstatus == 0
|
78
80
|
end
|
79
81
|
|
80
82
|
def create_inventory
|
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.4
|
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-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A modern & minimalistic Ansible provisioner for Test Kitchen.
|
14
14
|
email:
|