Sfoglia il codice sorgente

Merge "Check that facter.conf is a file" into stable/train

tags/11.3.1
Zuul Gerrit Code Review 6 mesi fa
parent
commit
73d28b6e2a
1 ha cambiato i file con 16 aggiunte e 0 eliminazioni
  1. +16
    -0
      common/deploy-steps-tasks.yaml

+ 16
- 0
common/deploy-steps-tasks.yaml Vedi File

@@ -130,6 +130,22 @@
setype: svirt_sandbox_file_t
selevel: s0
recurse: True
- name: Check for facter.conf
check_mode: false
stat:
path: "/var/lib/container-puppet/puppetlabs/facter.conf"
register: _facter_conf_file
# See LP#1852606 for context
- name: Remove facter.conf if directory
check_mode: false
become: true
file:
path: "/var/lib/container-puppet/puppetlabs/facter.conf"
state: absent
force: true
when:
- _facter_conf_file.stat.isdir is defined
- _facter_conf_file.stat.isdir
- name: Write facter cache config
copy:
dest: /var/lib/container-puppet/puppetlabs/facter.conf


Loading…
Annulla
Salva