1 # wrapper for ssh setup for statichosts
2 class roles::static::ssh(
3 Variant[Array[String], String] $add_tag,
7 ssh::keygen {'staticsync': }
9 ssh::authorized_key_add { 'staticsync':
10 target_user => 'staticsync',
11 command => "/usr/local/bin/staticsync-ssh-wrap ${::fqdn}",
12 key => $facts['staticsync_key'],
13 restrict => 'no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-user-rc',
14 collect_tag => $add_tag,
16 ssh::authorized_key_collect { 'staticsync':
17 target_user => 'staticsync',
18 collect_tag => $collect_tag,