-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.pp
72 lines (59 loc) · 1.32 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
if $trusted['certname'] in ['bolt', 'puppetdb'] {
fail("${trusted['certname']} is not allowed to use Puppet")
}
class choco {
include chocolatey
chocolateyfeature { 'useRememberedArgumentsForUpgrades':
ensure => enabled,
}
}
case $facts['os']['family'] {
'Gentoo': {
Firewalld_zone {
interfaces => [],
sources => [],
masquerade => false,
purge_rich_rules => true,
purge_services => true,
purge_ports => true,
}
# MariaDB defaults
Mysql::Db {
charset => 'utf8mb3',
collate => 'utf8mb3_general_ci',
}
Service {
provider => 'systemd',
}
Sysctl {
target => '/etc/sysctl.d/nest.conf',
require => File['/etc/sysctl.d'],
}
# Effectively disable resources that can't be managed in containers
if $facts['is_container'] {
Service <||> {
ensure => undef,
}
Sysctl <||> {
apply => false,
}
}
}
'windows': {
Concat {
# The default is usually 0644, but Windows keeps changing it to 0674, so
# just accept what it does.
mode => '0674',
}
stage { 'first':
before => Stage['main'],
}
class { 'choco':
stage => 'first',
}
Package {
provider => 'chocolatey',
}
}
}
hiera_include('classes')