feat: move puppetca role #351

Merged
unkinben merged 1 commits from benvin/ausyd1nxvm2097_puppet_ca into develop 2025-07-09 21:15:09 +10:00
3 changed files with 6 additions and 7 deletions
Showing only changes of commit 83205d7c14 - Show all commits

View File

@ -13,9 +13,3 @@ profiles::ssh::sign::principals:
profiles::puppet::puppetca::is_puppetca: true profiles::puppet::puppetca::is_puppetca: true
profiles::puppet::puppetca::allow_subject_alt_names: true profiles::puppet::puppetca::allow_subject_alt_names: true
networking::interfaces:
eth0:
ipaddress: 198.18.13.46
networking::routes:
default:
gateway: 198.18.13.254

View File

@ -31,6 +31,9 @@ class profiles::puppet::server (
Integer $facts_soft_limit = 4096, Integer $facts_soft_limit = 4096,
) { ) {
# add a bool for if this host is a ca, used in the auth.conf file
$is_ca = hiera('profiles::puppet::puppetca::is_puppetca', false)
file { '/etc/puppetlabs/puppet/puppet.conf': file { '/etc/puppetlabs/puppet/puppet.conf':
ensure => file, ensure => file,
owner => 'root', owner => 'root',

View File

@ -69,7 +69,9 @@ authorization: {
pp_cli_auth: "true" pp_cli_auth: "true"
} }
}, },
terraform terraform<% if @is_ca -%>,
<%= scope['trusted']['certname'] %>
<%- end -%>
] ]
sort-order: 500 sort-order: 500
name: "puppetlabs cert status" name: "puppetlabs cert status"