diff options
Diffstat (limited to 'roles/install_gentoo/tasks')
-rw-r--r-- | roles/install_gentoo/tasks/puppet.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/install_gentoo/tasks/puppet.yml b/roles/install_gentoo/tasks/puppet.yml index e413297..7d3fe12 100644 --- a/roles/install_gentoo/tasks/puppet.yml +++ b/roles/install_gentoo/tasks/puppet.yml @@ -76,6 +76,14 @@ mode: '0750' owner: "{{ puppet_uid }}" group: "{{ puppet_gid }}" + - path: /etc/facter/ + mode: '0750' + owner: "root" + group: "root" + - path: /etc/facter/facts.d/ + mode: '0750' + owner: "root" + group: "root" # If the paths exist and they are only empty, we can safely convert it. - name: cleanup non-symlink /etc/puppetlabs/puppet @@ -84,6 +92,12 @@ # TODO: add check for non-empty /etc/puppetlabs/puppet/ + - name: bootstrap /etc/facter/facts.d/service_provider.txt + ansible.builtin.copy: + dest: "{{ chroot }}/etc/facter/facts.d/service_provider.txt" + content: | + service_provider=systemd + - name: /etc/puppetlabs/puppet ansible.builtin.file: state: link |