diff options
author | 2024-03-10 09:42:52 -0700 | |
---|---|---|
committer | 2024-03-10 09:42:52 -0700 | |
commit | 65acde3cba51caebe32d849fa85f0cc92c0653b0 (patch) | |
tree | 3892d751eff0010f387f7add6ba5c752855d5971 | |
parent | ansible: fix inventory & config (diff) | |
download | ansible-65acde3cba51caebe32d849fa85f0cc92c0653b0.tar.gz ansible-65acde3cba51caebe32d849fa85f0cc92c0653b0.tar.bz2 ansible-65acde3cba51caebe32d849fa85f0cc92c0653b0.zip |
fix(install_gentoo): set puppet for service provider
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-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 |