]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/static_base.pp
267c8ba61f64e47550df972dad06642e369c066b
[dsa-puppet.git] / modules / roles / manifests / static_base.pp
1 class roles::static_base {
2     if ! $::staticsync_key {
3         exec { 'create-staticsync-key':
4             command => '/bin/su - staticsync -c \'mkdir -p -m 02700 .ssh && ssh-keygen -C "`whoami`@`hostname` (`date +%Y-%m-%d`)" -P "" -f .ssh/id_rsa -q\'',
5             onlyif  => '/usr/bin/getent passwd staticsync > /dev/null && ! [ -e /home/staticsync/.ssh/id_rsa ]'
6         }
7     }
8
9     file {
10         '/etc/static-components.conf':
11             source  => "puppet:///modules/roles/static-mirroring/static-components.conf",
12             ;
13     }
14 }
15 # vim:set et:
16 # vim:set sts=4 ts=4:
17 # vim:set shiftwidth=4: