Add support for retry files configuration

Change-Id: I2b9806de3516ab1a2606bd982f2eecd432d19527
This commit is contained in:
James E. Blair 2016-05-24 11:44:08 -07:00
parent 33164d2340
commit 73bf1baa15
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 -%>