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 ]'
9 file { '/etc/static-components.conf':
10 source => 'puppet:///modules/roles/static-mirroring/static-components.conf',