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:
Ricardo Carrillo Cruz 2016-08-11 11:15:50 +02:00
parent d8198978d5
commit ac07f3ae2d
1 changed files with 2 additions and 1 deletions

View File

@ -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,
}