wuiet.d.o no longer needs access to projectb on bmdb1
[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   include roles::snapshot_ssh_keygen
8
9   ssh::authorized_key_add { "roles::snapshot_master::from::farmsync_target::${::fqdn}":
10     target_user => 'snapshot',
11     key         => dig($facts, 'ssh_keys_users', 'snapshot', 'id_rsa.pub', 'line'),
12     command     => '~/code/mirror/ssh-wrap master',
13     collect_tag => 'roles::snapshot::to::master',
14   }
15 }