Skip to content

Commit d2004d6

Browse files
committed
Add read map so puppetdb can start on new compiler
This commit adds a file_line resource which will configure a pe-puppetdb-pe-puppetdb-read-map in pg_ident.conf so that the PuppetDB instance which is setup on new compilers using the add_compiler plan will start properly.
1 parent 68384bc commit d2004d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plans/add_compiler.pp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
path => '/opt/puppetlabs/server/data/postgresql/11/data/pg_ident.conf',
3737
line => "pe-puppetdb-pe-puppetdb-migrator-map ${compiler_target.peadm::certname()} pe-puppetdb-migrator",
3838
}
39+
file_line { 'pe-puppetdb-pe-puppetdb-read-map':
40+
path => '/opt/puppetlabs/server/data/postgresql/11/data/pg_ident.conf',
41+
line => "pe-puppetdb-pe-puppetdb-read-map ${compiler_target.peadm::certname()} pe-puppetdb-read",
42+
}
3943
}
4044

4145
# Reload pe-postgresql.service

0 commit comments

Comments
 (0)