target_user => 'staticsync',
command => "/usr/local/bin/staticsync-ssh-wrap ${::fqdn}",
key => $facts['staticsync_key'],
+ restrict => 'no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-user-rc',
collect_tag => 'staticsync',
}
ssh::authorized_key_collect { 'staticsync':
String $command,
String $key,
String $collect_tag,
+ String $restrict = 'restrict',
Array[Stdlib::IP::Address] $from_hosts = $base::public_addresses,
) {
$from = $from_hosts.join(',')
order => '200',
content => @("EOF"),
# from ${::fqdn}
- command="${command}",from="${from}",restrict ${key}
+ command="${command}",from="${from}",${restrict} ${key}
| EOF
}
} else {