Add r10k config and fix puppet.conf to use

This commit is contained in:
Antonio J. Delgado 2022-10-17 12:12:27 +03:00
parent b6f0e5d137
commit c775d96ef1

View file

@ -1,7 +1,7 @@
---
- name: Ensure puppet server master section is configured
ini_file:
path: /etc/puppetlabs/puppet.conf
path: /etc/puppetlabs/puppet/puppet.conf
section: master
option: "{{ item.key }}"
value: "{{ item.value }}"
@ -13,7 +13,7 @@
- name: Ensure puppet server server section is configured
ini_file:
path: /etc/puppetlabs/puppet.conf
path: /etc/puppetlabs/puppet/puppet.conf
section: server
option: "{{ item.key }}"
value: "{{ item.value }}"
@ -122,3 +122,8 @@
name: puppetserver
state: started
enabled: true
- name: Ensure r10k is configured
copy:
dest: /etc/puppetlabs/r10k/r10k.yaml
content: "{{ r10k_config | to_nice_yaml }}"