Merge "Improve facter cache reliability" into stable/stein
This commit is contained in:
commit
2e309805be
@ -462,6 +462,7 @@
|
||||
dest: /var/lib/container-puppet/puppetlabs/facter.conf
|
||||
content: |
|
||||
facts : {
|
||||
blocklist: [ "EC2" ],
|
||||
ttls: [
|
||||
{ "kernel" : 8 hour },
|
||||
{ "memory" : 8 hour },
|
||||
@ -480,12 +481,14 @@
|
||||
- name: Pre-cache facts
|
||||
check_mode: false
|
||||
command: facter --config /var/lib/container-puppet/puppetlabs/facter.conf
|
||||
retries: 5
|
||||
delay: 5
|
||||
no_log: True
|
||||
ignore_errors: True
|
||||
register: _facter_cache_run
|
||||
- name: Facter error output when failed
|
||||
- name: Failed deployment if facter fails
|
||||
check_mode: false
|
||||
debug:
|
||||
fail:
|
||||
msg: "{{ _facter_cache_run.stderr }}"
|
||||
when: _facter_cache_run is failed
|
||||
- name: Sync cached facts
|
||||
|
Loading…
Reference in New Issue
Block a user