Newer
Older
bootstrap / environments / production / modules / bootstrap / manifests / domain_configuration.pp
### Everything needed to join the STUDENT domain

class bootstrap::domain_configuration {

	package { 'realmd' : ensure => installed }
	package { 'sssd' : ensure => installed }
	package { 'sssd-tools' : ensure => installed }
	package { 'libnss-sss' : ensure => installed }
	package { 'libpam-sss' : ensure => installed }
	package { 'krb5-user' : ensure => installed }
	package { 'adcli' : ensure => installed }
	package { 'samba-common-bin' : ensure => installed }

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

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

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

	file { '/etc/sssd/sssd.conf' :
		source => 'puppet:///modules/bootstrap/authentication/etc/sssd/sssd.conf',
		ensure => 'present',
		mode => '0600',
		require => Package['sssd'],
	}

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

}