blob: bd3097faac4855fd9ceabb10f3579075abb80216 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# common things to set up on every node
# leftover from the past, where we did two puppetruns
# after another. We should consolidate this into site_config::default
# in the future.
class site_config::setup {
tag 'leap_base'
#
# this is applied before each run of site.pp
#
Exec { path => '/usr/bin:/usr/sbin/:/bin:/sbin:/usr/local/bin:/usr/local/sbin' }
include site_config::params
include concat::setup
include stdlib
# configure /etc/hosts
class { 'site_config::hosts': }
include site_config::initial_firewall
include site_apt
package { 'facter':
ensure => latest
}
# if squid_deb_proxy_client is set to true, install and configure
# squid_deb_proxy_client for apt caching
if hiera('squid_deb_proxy_client', false) {
include site_squid_deb_proxy::client
}
# shorewall is installed/half-configured during setup.pp (Bug #3871)
# we need to include shorewall::interface{eth0} in setup.pp so
# packages can be installed during main puppetrun, even before shorewall
# is configured completly
if str2bool("$::vagrant") {
include site_config::vagrant
}
# if class site_custom::setup exists, include it.
# possibility for users to define custom puppet recipes
if defined( '::site_custom::setup') {
include ::site_custom::setup
}
}
|