Merge "Add support for retry files configuration"

This commit is contained in:
Jenkins 2016-07-19 16:15:25 +00:00 committed by Gerrit Code Review
commit d8198978d5
2 changed files with 10 additions and 2 deletions

View File

@ -1,8 +1,10 @@
# == Class: ansible
#
class ansible (
$ansible_hostfile = '/etc/ansible/hosts',
$ansible_roles_path = '/etc/ansible/roles',
$ansible_hostfile = '/etc/ansible/hosts',
$ansible_roles_path = '/etc/ansible/roles',
$retry_files_enabled = undef,
$retry_files_save_path = undef,
) {
include ::logrotate

View File

@ -3,3 +3,9 @@ hostfile=<%= @ansible_hostfile %>
library=/usr/share/ansible
log_path=/var/log/ansible.log
roles_path=<%= @ansible_roles_path %>
<% if @retry_files_enabled != :undef -%>
retry_files_enabled=<%= @retry_files_enabled %>
<% end -%>
<% if @retry_files_save_path != :undef -%>
retry_files_save_path=<%= @retry_files_save_path %>
<% end -%>