# the base class defining tings common for all three static classes (master, mirror, source)
class roles::static::base {
- ssh::keygen {'staticsync': }
- ssh::authorized_key_add { 'staticsync':
- target_user => 'staticsync',
- command => "/usr/local/bin/staticsync-ssh-wrap ${::fqdn}",
- key => $facts['staticsync_key'],
- restrict => 'no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-user-rc',
- collect_tag => 'staticsync',
- }
- ssh::authorized_key_collect { 'staticsync':
- target_user => 'staticsync',
- collect_tag => 'staticsync',
- }
-
file { '/etc/static-components.conf':
content => template('roles/static-mirroring/static-components.conf.erb'),
}