80ac29adc84e03e4a74cbbc739c3e5a032ec42df
[mirror/dsa-puppet.git] / modules / roles / manifests / dns_geodns.pp
1 # the geodns noes
2 class roles::dns_geodns {
3   include named::geodns
4
5   ssh::keygen { 'geodnssync': }
6   ssh::authorized_key_add { 'dns_geodns::pull-from-primary':
7     target_user => 'geodnssync',
8     command     => '/usr/bin/rsync --server --sender -logDtprze.iL . zonefiles/',
9     key         => $facts['geodnssync_key'],
10     collect_tag => 'dns_primary',
11   }
12
13   ssh::authorized_key_collect { 'geodnssync-node':
14     target_user => 'geodnssync',
15     collect_tag => 'geodnssync-node',
16   }
17 }