3 # That is any node that requires ssh access to the master,
4 # like sync targets or web mirrors.
5 class roles::snapshot_secondary {
6 include roles::snapshot_base
7 include roles::snapshot_ssh_keygen
9 ssh::keygen {'snapshot': }
11 ssh::authorized_key_add { "roles::snapshot_master::from::farmsync_target::${::fqdn}":
12 target_user => 'snapshot',
13 key => dig($facts, 'ssh_keys_users', 'snapshot', 'id_rsa.pub', 'line'),
14 command => '~/code/mirror/ssh-wrap master',
15 collect_tag => 'roles::snapshot::to::master',