From 349e4823a0527cf3a36e6afd84a24ad2731262b1 Mon Sep 17 00:00:00 2001 From: Adam Lazik Date: Thu, 21 Nov 2024 15:29:35 +0100 Subject: [PATCH] Refs #37803 - Remove ProxyCommand option from Ansible options Relates to https://github.com/theforeman/puppet-foreman_proxy/pull/845 --- .../foreman.migrations/20241106161211_remove_proxycommand.rb | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 config/foreman.migrations/20241106161211_remove_proxycommand.rb diff --git a/config/foreman.migrations/20241106161211_remove_proxycommand.rb b/config/foreman.migrations/20241106161211_remove_proxycommand.rb new file mode 100644 index 00000000..418f169d --- /dev/null +++ b/config/foreman.migrations/20241106161211_remove_proxycommand.rb @@ -0,0 +1,3 @@ +if answers['foreman_proxy::plugin::ansible'].is_a?(Hash) && answers['foreman_proxy::plugin::ansible']['ssh_args'] == '-o ProxyCommand=none -C -o ControlMaster=auto -o ControlPersist=60s' + answers['foreman_proxy::plugin::ansible']['ssh_args'] = '-C -o ControlMaster=auto -o ControlPersist=60s' +end