- file { '/etc/facter':
- ensure => directory,
- purge => true,
- force => true,
- recurse => true,
- source => 'puppet:///files/empty/',
- }
- file { '/etc/facter/facts.d':
- ensure => directory,
- }
- file { '/etc/facter/facts.d/debian_facts.yaml':
- content => template('debian_org/debian_facts.yaml.erb')
- }
- file { '/etc/timezone':
- content => "Etc/UTC\n",
- notify => Exec['dpkg-reconfigure tzdata -pcritical -fnoninteractive'],
- }
- if versioncmp($::lsbmajdistrelease, '9') >= 0 { # jessie has a regular file there, for instance
- file { '/etc/localtime':
- ensure => 'link',
- target => '/usr/share/zoneinfo/Etc/UTC',
- notify => Exec['dpkg-reconfigure tzdata -pcritical -fnoninteractive'],
- }
- }
- if $::hostname == handel {
- include puppetmaster::db
- $dbpassword = $puppetmaster::db::password
- }
- file { '/etc/puppet/puppet.conf':
- content => template('debian_org/puppet.conf.erb'),
- mode => '0440',
- group => 'puppet',
- }
- file { '/etc/default/puppet':
- source => 'puppet:///modules/debian_org/puppet.default',
- }
- file { '/etc/systemd':
- ensure => directory,
- mode => '0755',
- }
- file { '/etc/systemd/system':
- ensure => directory,
- mode => '0755',
- }
- file { '/etc/systemd/system/ud-replicated.service':
- ensure => $servicefiles,
- source => 'puppet:///modules/debian_org/ud-replicated.service',
- notify => Exec['systemctl daemon-reload'],
- }
- if $systemd {
- file { '/etc/systemd/system/multi-user.target.wants/ud-replicated.service':
- ensure => 'link',
- target => '../ud-replicated.service',
- notify => Exec['systemctl daemon-reload'],
- }
- }
- file { '/etc/systemd/system/puppet.service':
- ensure => 'link',
- target => '/dev/null',
- notify => Exec['systemctl daemon-reload'],
- }
- file { '/etc/systemd/system/proc-sys-fs-binfmt_misc.automount':
- ensure => 'link',
- target => '/dev/null',
- notify => Exec['systemctl daemon-reload'],
- }