Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial CP core service deployment #13

Merged
merged 5 commits into from
Nov 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions site/profile/manifests/core/common.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
include resolv_conf
include ssh
include easy_ipa
include augeas
}
50 changes: 0 additions & 50 deletions site/profile/manifests/default.pp
Original file line number Diff line number Diff line change
Expand Up @@ -97,65 +97,15 @@
}

################################################################################
$ntp = lookup('ntp')
class { '::chrony':
servers => {
"${$ntp[ntp_server_1]}" => ['iburst'],
"${$ntp[ntp_server_2]}" => ['iburst'],
"${$ntp[ntp_server_3]}" => ['iburst'],
},
}

$motd_msg = lookup('motd')
file { '/etc/motd' :
ensure => file,
content => $motd_msg,
}

$puppet_agent_run_interval = lookup('puppet_agent_run_interval')

ini_setting { 'Puppet agent runinterval':
ensure => present,
path => '/etc/puppetlabs/puppet/puppet.conf',
section => 'agent',
setting => 'runinterval',
value => $puppet_agent_run_interval,
}

ini_setting { 'Puppet agent server':
ensure => present,
path => '/etc/puppetlabs/puppet/puppet.conf',
section => 'agent',
setting => 'server',
value => lookup('puppet_master_server'),
}

file{'/opt/puppetlabs/puppet/cache':
ensure => 'directory',
mode => '0755',
}

service{ 'puppet':
ensure => lookup('puppet_agent_service_state'),
enable => true,
}

################################################################################

file_line { 'SELINUX=permissive':
path => '/etc/selinux/config',
line => 'SELINUX=enforce',
match => '^SELINUX=+',
}

# Set timezone as default to UTC
exec { 'set-timezone':
provider => 'shell',
command => '/bin/timedatectl set-timezone UTC',
returns => [0],
onlyif => "test -z \"$(ls -l /etc/localtime | grep -o UTC)\""
}

# Shared resources from all the teams

package { 'git':
Expand Down