foreman_ansible_core 3.0.5 → 4.0.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6427ec31aba5a41a3ffa93168c761218f0aff53f97d08681c9d2cba431b50a9f
|
4
|
+
data.tar.gz: cc0a584af7801a24e3d66b679b840c968ab7851f38901abf37e5d26923d1eea9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f4db115d787db1dc78d3eaa468b2972514005aa8d068fc0b98d73f7a07e159a5646a9cff4e5f9a19ed6de1ee4043f9f04379f69e82bdceb6a1b9ab5d8257f60
|
7
|
+
data.tar.gz: bb6bb793c4ea5d2f43af3ac1c3e545f39b574f32041cd141cd06e4c115e519c3e221449a7af0b4956627acf593792b63376d54dc922bd0ff69ba13ecd76924aa
|
@@ -38,6 +38,11 @@ module ForemanAnsibleCore
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
def close
|
42
|
+
super
|
43
|
+
FileUtils.remove_entry(@root) if @tmp_working_dir
|
44
|
+
end
|
45
|
+
|
41
46
|
private
|
42
47
|
|
43
48
|
def handle_event_file(event_file)
|
@@ -72,16 +77,10 @@ module ForemanAnsibleCore
|
|
72
77
|
def handle_broadcast_data(event)
|
73
78
|
log_event("broadcast", event)
|
74
79
|
if event['event'] == 'playbook_on_stats'
|
75
|
-
failures = event.dig('event_data', 'failures') || {}
|
76
80
|
header, *rows = event['stdout'].strip.lines.map(&:chomp)
|
77
81
|
@outputs.keys.select { |key| key.is_a? String }.each do |host|
|
78
82
|
line = rows.find { |row| row =~ /#{host}/ }
|
79
83
|
publish_data_for(host, [header, line].join("\n"), 'stdout')
|
80
|
-
|
81
|
-
# If the task has been rescued, it won't consider a failure
|
82
|
-
if @exit_statuses[host].to_i != 0 && failures[host].to_i <= 0
|
83
|
-
publish_exit_status_for(host, 0)
|
84
|
-
end
|
85
84
|
end
|
86
85
|
else
|
87
86
|
broadcast_data(event['stdout'] + "\n", 'stdout')
|
@@ -163,8 +162,8 @@ module ForemanAnsibleCore
|
|
163
162
|
per_host = secrets['per-host'][host]
|
164
163
|
|
165
164
|
new_secrets = {
|
166
|
-
'
|
167
|
-
'
|
165
|
+
'ansible_password' => inventory['ssh_password'] || per_host['ansible_password'],
|
166
|
+
'ansible_become_password' => inventory['effective_user_password'] || per_host['ansible_become_password']
|
168
167
|
}
|
169
168
|
inventory['_meta']['hostvars'][host].update(new_secrets)
|
170
169
|
end
|
@@ -124,8 +124,8 @@ module ForemanAnsibleCore
|
|
124
124
|
per_host = secrets['per-host'][name]
|
125
125
|
|
126
126
|
new_secrets = {
|
127
|
-
'
|
128
|
-
'
|
127
|
+
'ansible_password' => inventory['ssh_password'] || per_host['ansible_password'],
|
128
|
+
'ansible_become_password' => inventory['effective_user_password'] || per_host['ansible_become_password']
|
129
129
|
}
|
130
130
|
inventory['_meta']['hostvars'][name].update(new_secrets)
|
131
131
|
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_ansible_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Lobato Garcia
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: foreman_remote_execution_core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
type: :
|
19
|
+
version: '1.1'
|
20
|
+
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '1.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: foreman-tasks-core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.3.2
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: foreman_remote_execution_core
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.1'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.1'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: net-ssh
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,7 +77,7 @@ homepage: https://github.com/theforeman/foreman_ansible
|
|
91
77
|
licenses:
|
92
78
|
- GPL-3.0
|
93
79
|
metadata: {}
|
94
|
-
post_install_message:
|
80
|
+
post_install_message:
|
95
81
|
rdoc_options: []
|
96
82
|
require_paths:
|
97
83
|
- lib
|
@@ -107,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
93
|
version: '0'
|
108
94
|
requirements: []
|
109
95
|
rubygems_version: 3.1.2
|
110
|
-
signing_key:
|
96
|
+
signing_key:
|
111
97
|
specification_version: 4
|
112
98
|
summary: 'Ansible integration with Foreman (theforeman.org): core bits'
|
113
99
|
test_files: []
|