2 class roles::snapshot_master {
3 include roles::snapshot_base
4 include roles::snapshot_ssh_keygen
6 ssh::authorized_key_add { 'roles::snapshot_master::to::farmsync_target':
7 target_user => 'snapshot',
8 key => dig($facts, 'ssh_keys_users', 'snapshot', 'id_rsa.pub', 'line'),
9 command => '~/bin/run-sync',
10 collect_tag => 'roles::snapshot::to::farmsync_target',
13 ssh::authorized_key_collect { 'snapshot':
14 target_user => 'snapshot',
15 collect_tag => 'roles::snapshot::to::master',