Set up ssh between snapshot nodes
[mirror/dsa-puppet.git] / modules / roles / manifests / snapshot_secondary.pp
1 # snapshot secondary
2 #
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
8   ssh::keygen {'snapshot': }
9
10   ssh::authorized_key_add { "roles::snapshot_master::from::farmsync_target::${::fqdn}":
11     target_user => 'snapshot',
12     key         => dig($facts, 'ssh_keys_users', 'snapshot', 'id_rsa.pub', 'line'),
13     command     => '~/code/mirror/ssh-wrap master',
14     collect_tag => 'roles::snapshot::to::master',
15   }
16 }