Skip to content

Commit

Permalink
Merge pull request #13 from lsst-it/IT-1397/core
Browse files Browse the repository at this point in the history
initial CP core service deployment
  • Loading branch information
adrienthebo committed Nov 19, 2019
2 parents 1afe1b5 + bc26310 commit 84bc2cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 50 deletions.
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

0 comments on commit 84bc2cb

Please sign in to comment.