Browse Source

Merge "Improve facter cache reliability" into stable/stein

changes/14/735114/1
Zuul 1 month ago
committed by Gerrit Code Review
parent
commit
2e309805be
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      common/deploy-steps-tasks.yaml

+ 5
- 2
common/deploy-steps-tasks.yaml View File

@@ -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…
Cancel
Save