File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
modules/profile/manifests/puppet Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 7
7
) {
8
8
include profile::puppet::common
9
9
10
+ $primary_host = $profile::puppet::agent::ca_server
11
+ $is_primary = $primary_host == $facts [' networking' ][' fqdn' ]
12
+
10
13
$termini_package = debian::codename() ? {
11
14
' bullseye' => ' puppetdb-termini' ,
12
15
default => ' puppet-terminus-puppetdb' ,
249
252
250
253
ssh::client::user_key { 'puppet-sync' : }
251
254
255
+ if $facts [' ssh_local_keys' ] and $facts [' ssh_local_keys' ][' puppet-sync' ] {
256
+ $key = $facts [' ssh_local_keys' ][' puppet-sync' ]
257
+ @@ssh_authorized_key { "puppet-sync-${facts['networking']['fqdn']}" :
258
+ user => ' root' ,
259
+ type => $key .split(' ' )[0],
260
+ key => $key .split(' ' )[1],
261
+ options => [' restrict' ],
262
+ tag => ' profile::puppet::server::puppet_sync' ,
263
+ }
264
+ }
265
+
266
+ Ssh_authorized_key <<| tag == ' profile::puppet::server::puppet_sync' |>>
267
+
252
268
# Expose SSH keys so users can verify them
253
269
file { '/srv/www' :
254
270
ensure => directory ,
You can’t perform that action at this time.
0 commit comments