Browse Source

Expose puppet_timeout variable

It is possible we want our puppet role to run longer then 30mins,
expose the ability for a user to change it.

Change-Id: Id42ba80a5118a9f93e45619ac6ecc5baa774549a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Paul Belanger 2 years ago
parent
commit
edb0e245d5
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      defaults/main.yml
  2. 1
    0
      tasks/main.yml

+ 1
- 0
defaults/main.yml View File

@@ -15,3 +15,4 @@ puppet_environmentpath: '$confdir/environments'
15 15
 puppet_hiera_datadir: '/opt/system-config/'
16 16
 puppet_environment_basedir: '/opt/system-config/'
17 17
 puppet_environment: production
18
+puppet_timeout: 30m

+ 1
- 0
tasks/main.yml View File

@@ -66,6 +66,7 @@
66 66
       environment: "{{ puppet_environment|default(omit) }}"
67 67
       noop: "{{ puppet_noop|default(omit) }}"
68 68
       debug: "{{ puppet_debug|default(omit) }}"
69
+      timeout: "{{ puppet_timeout|default(omit) }}"
69 70
 - always:
70 71
   - name: find logs
71 72
     shell: "ls -tr /var/lib/puppet/reports/{{ ansible_fqdn }}/*_puppetdb.json"

Loading…
Cancel
Save