smart_proxy_ansible 3.7.1 → 3.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c60e5a51488caeab62b573ecc20eb7115a8a314b50f769fe90dcc392da21f265
4
- data.tar.gz: e313e2b6edcf6d7ebdef42b65b3dbad36fd33d37fcfb09f813495b4d744ccd5f
3
+ metadata.gz: 62663eb451dc821e58bc13d80bea37a9d83ad9965f2bdb976066d8d4b2df46c4
4
+ data.tar.gz: 802d91dd6016c9dfe9608548ad4117ba47f31087d0dd094f339c00ca37422163
5
5
  SHA512:
6
- metadata.gz: 24b3522f1463e5216a5a6c8b806bd194d21701e3c689e7b69300642158787ec81a59a5376e7df2f430c5aeae2c5bb24f37b74b56adfc1bc1ed0ed691c918eb63
7
- data.tar.gz: 440ba148eb5c12c262d023e8c5a39739cf0f110ef941bd675fc5a9b032d2dca5980a53f7d57f1f3f9af8eb568ccef5160698809e52bd2ba040ab16d650d12727
6
+ metadata.gz: 72adab05fd62603bb7f5d32130262b1e012363390958ab4e2e82805d5e02735f7fe5f902afc8880cb03d8e90bf8ac4a09860480dc7ebb8eca61a8956f8489cd7
7
+ data.tar.gz: a4788c693e227db30e8c6ab21bc31d1d583e07b999043cc5eb812bfc9cf501bf2efa5459b1f5bc85c670f3be7314744e4be1fc038975ad132eee21ae6cc7c234
@@ -48,6 +48,7 @@ module Proxy::Ansible
48
48
 
49
49
  def timeout
50
50
  logger.debug('job timed out')
51
+ broadcast_data('Timeout for execution passed, stopping the job', 'stderr')
51
52
  super
52
53
  end
53
54
 
@@ -57,9 +58,8 @@ module Proxy::Ansible
57
58
 
58
59
  def kill
59
60
  ::Process.kill('SIGTERM', @process_manager.pid)
61
+ @inventory['all']['hosts'].each_key { |hostname| @exit_statuses[hostname] = 2 }
60
62
  publish_exit_status(2)
61
- @inventory['all']['hosts'].each { |hostname| @exit_statuses[hostname] = 2 }
62
- broadcast_data('Timeout for execution passed, stopping the job', 'stderr')
63
63
  close
64
64
  end
65
65
 
@@ -79,6 +79,14 @@ module Proxy::Ansible
79
79
  @process_manager.stdin.close unless @process_manager.done?
80
80
  end
81
81
 
82
+ def set_process_manager_callbacks(pm)
83
+ super
84
+ pm.on_stderr do |data|
85
+ broadcast_data(data, 'stderr')
86
+ ''
87
+ end
88
+ end
89
+
82
90
  private
83
91
 
84
92
  def process_artifacts
@@ -207,7 +215,7 @@ module Proxy::Ansible
207
215
  env = {}
208
216
  env['FOREMAN_CALLBACK_DISABLE'] = '1' if @rex_command
209
217
  env['SMART_PROXY_ANSIBLE_ENVIRONMENT_FILE'] = Proxy::Ansible::Plugin.settings[:ansible_environment_file]
210
- command = ['ansible-runner', 'run', @root, '-p', 'playbook.yml']
218
+ command = ['ansible-runner', '-q', 'run', @root, '-p', 'playbook.yml']
211
219
  command << '--cmdline' << cmdline unless cmdline.nil?
212
220
  command << verbosity if verbose?
213
221
 
@@ -2,6 +2,6 @@ module Proxy
2
2
  # Version, this allows the proxy and other plugins know
3
3
  # what version of the Ansible plugin is running
4
4
  module Ansible
5
- VERSION = '3.7.1'
5
+ VERSION = '3.7.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.1
4
+ version: 3.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  requirements: []
115
- rubygems_version: 4.0.3
115
+ rubygems_version: 4.0.20
116
116
  specification_version: 4
117
117
  summary: Smart-Proxy Ansible plugin
118
118
  test_files: []