Newer
Older
bootstrap / environments / production / modules / bootstrap / manifests / puppet_agent.pp
Mark George on 11 Feb 2021 589 bytes Initial commit
class bootstrap::puppet_agent {

	file { '/etc/puppet/puppet.conf' :
		ensure => present,
		source => 'puppet:///modules/bootstrap/puppet_agent/etc/puppet/puppet.conf'
	}

	file { '/etc/systemd/system/puppet.service.d' :
		ensure => 'directory'
	}

	file { '/etc/systemd/system/puppet.service.d/wait_for_network.conf' :
		ensure => 'present',
		source => 'puppet:///modules/bootstrap/puppet_agent/etc/systemd/system/puppet.service.d/wait_for_network.conf',
		require => File['/etc/systemd/system/puppet.service.d']
	}

	service { 'puppet':
		enable => 'true',
		ensure => 'running'
	}

}