File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -436,6 +436,19 @@ Configures the puppet master to use PuppetDB as the facts terminus. *WARNING*: t
436436 puppet_confdir => '/etc/puppet'
437437 }
438438
439+ The optional parameter routes can be used to specify a custom route configuration. For example to configure routes for masterless puppet.
440+
441+ class { 'puppetdb::master::routes':
442+ routes => {
443+ 'apply' => {
444+ 'facts' => {
445+ 'terminus' => 'facter',
446+ 'cache' => 'puppetdb_apply',
447+ }
448+ }
449+ }
450+ }
451+
439452** puppetdb::master::storeconfigs**
440453
441454Configures the puppet master to enable storeconfigs and to use PuppetDB as the storeconfigs backend.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22# details.
33class puppetdb::master::routes (
44 $puppet_confdir = $puppetdb::params::puppet_confdir,
5+ $routes = {
6+ ' master' => {
7+ ' facts' => {
8+ ' terminus' => ' puppetdb' ,
9+ ' cache' => ' yaml' ,
10+ }
11+ }
12+ }
513) inherits puppetdb::params {
614
715 # TODO: this will overwrite any existing routes.yaml;
1018 # to parse the yaml file and rewrite it, dealing with indentation issues etc.
1119 # I don't think there is currently a puppet module or an augeas lens for this.
1220 file { "${puppet_confdir}/routes.yaml" :
13- ensure => file ,
14- source => ' puppet:///modules/ puppetdb/routes.yaml' ,
21+ ensure => file ,
22+ content => template ( ' puppetdb/routes.yaml.erb ' ) ,
1523 }
1624}
Original file line number Diff line number Diff line change 1+ # This file was automatically generated by the puppetdb module.
2+
3+ <%= @routes.to_yaml %>
You can’t perform that action at this time.
0 commit comments