Revision 4acf2d6a
Added by Daniel Lobato Garcia almost 6 years ago
manifests/plugin/ansible/params.pp | ||
---|---|---|
class foreman_proxy::plugin::ansible::params {
|
||
$enabled = true
|
||
$listen_on = 'https'
|
||
$ansible_dir = '/etc/ansible'
|
||
$ansible_dir = '/usr/share/foreman-proxy'
|
||
$working_dir = '/tmp'
|
||
$host_key_checking = false
|
||
}
|
spec/classes/foreman_proxy__plugin__ansible_spec.rb | ||
---|---|---|
it 'should configure ansible.yml' do
|
||
should contain_file('/etc/foreman-proxy/settings.d/ansible.yml').
|
||
with_content(/:enabled: https/).
|
||
with_content(%r{:ansible_dir: /etc/ansible})
|
||
with_content(%r{:ansible_dir: /usr/share/foreman-proxy})
|
||
end
|
||
|
||
it 'should configure ansible.cfg' do
|
Also available in: Unified diff
Fixes #23905 - Use /usr/share/foreman-proxy as ansible_dir
Using /etc/ansible means that the ~foreman-proxy/.ansible.cfg file we
had set up will be ignored. This means the callback is ignored and any
other options we might set in /etc/foreman-proxy/ansible.cfg