-
Notifications
You must be signed in to change notification settings - Fork 1
/
site.pp
42 lines (37 loc) · 1.03 KB
/
site.pp
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
# WARNING: This will not work with per-environment heira.yaml version 4 any more
# It does lookup only in Global Hiera!
#hiera_include('classes')
# Special hack for Vagrant testing
if $::facts['lsbdistcodename'] in [ 'jessie', 'stretch', 'bionic' ] {
$ifacename = [
'eth0',
'eth1',
'eth2',
'eth3',
'eth4',
]
} else {
$ifacename = [
'enp0s3',
'enp0s8',
'enp0s9',
'enp0s10',
'enp0s16',
]
}
# Please make sure "module_data" module is not used as it poisons lookup() processing.
# See https://tickets.puppetlabs.com/browse/PUP-5952 for more details.
lookup('classes', Array[String], 'unique').include
node 'maint.example.com' {
cfsystem_service { 'cfsvc-test_service':
ensure => present,
command => '/bin/sleep 180',
user => root,
root_dir => '/root',
memory_weight => 1,
cpu_weight => 1,
io_weight => 1,
allow_restart => false,
}
}
node default {}