From c775d96ef1043fcc93eae471ab3282249a17b8ee Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 17 Oct 2022 12:12:27 +0300 Subject: [PATCH] Add r10k config and fix puppet.conf to use --- tasks/configure.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 02782c7..036a58c 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -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 }}" \ No newline at end of file