3
0
Arne Teuke
2025-10-28 12:38:10 +01:00
parent a99617f531
commit cdcfca47b4
3 changed files with 18 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ class puppet_cd::main::files (
}
if $pt_use_puppetdb == true {
# puppetdb.conf
file { $pt_puppetdb_conf_file:
ensure => file,
path => $pt_puppetdb_conf_file,
@@ -41,6 +42,16 @@ class puppet_cd::main::files (
content => template($pt_puppetdb_conf_erb),
notify => Service[$pt_agent_service,$pt_server_service],
}
# routes.yaml
file { $pt_routes_file:
ensure => file,
path => $pt_routes_file,
owner => 'root',
group => 'root',
mode => '0644',
content => template($pt_routes_erb),
notify => Service[$pt_server_service],
}
}
}
}

View File

@@ -150,6 +150,8 @@ class puppet_cd::params (
$pt_hiera_config = "${pt_puppetdir}/hiera.yaml"
$pt_puppetdb_conf_file = "${pt_puppetdir}/puppetdb.conf"
$pt_puppetdb_conf_erb = 'puppet_cd/puppetdb/puppetdb.conf.erb'
$pt_routes_file = "${pt_puppetdir}/routes.yaml"
$pt_routes_erb = 'puppet_cd/puppetdb/routes.yaml.erb'
## r10k
$pt_r10k_file = "${pt_r10k_dir}/r10k.yaml"

View File

@@ -0,0 +1,5 @@
---
master:
facts:
terminus: puppetdb
cache: yaml