This commit is contained in:
@@ -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],
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
5
templates/puppetdb/routes.yaml.erb
Normal file
5
templates/puppetdb/routes.yaml.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
master:
|
||||
facts:
|
||||
terminus: puppetdb
|
||||
cache: yaml
|
||||
Reference in New Issue
Block a user