Expose Ansible version on the module signature
The version is hardcoded within the class code, preventing to specify a specific version of Ansible for nodes using this class. In the infracloud baremetal node I need Ansible 2.1.1.0, I will propose a subsequent patch on system-config/site.pp after this merges. Change-Id: Ie4120c8744eed78022ebcc3ea696142d1a1375aa
This commit is contained in:
parent
d8198978d5
commit
ac07f3ae2d
|
@ -3,6 +3,7 @@
|
|||
class ansible (
|
||||
$ansible_hostfile = '/etc/ansible/hosts',
|
||||
$ansible_roles_path = '/etc/ansible/roles',
|
||||
$ansible_version = '2.0.2.0',
|
||||
$retry_files_enabled = undef,
|
||||
$retry_files_save_path = undef,
|
||||
) {
|
||||
|
@ -11,7 +12,7 @@ class ansible (
|
|||
include ::pip
|
||||
|
||||
package { 'ansible':
|
||||
ensure => '2.0.2.0',
|
||||
ensure => $ansible_version,
|
||||
provider => openstack_pip,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue