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
|
class nodo::resources {
# Website resources
if defined("websites::resources") {
class { "websites::resources": }
}
# Packages
$packages = hiera('packages', {})
create_resources('package', $packages)
# Files
$files = hiera('files', {})
create_resources('file', $files)
# File lines
$file_lines = hiera('file_lines', {})
create_resources('file_line', $file_lines)
# Virtual machines
$vms = hiera('virtual::machines', {})
create_resources('nodo::subsystem::virtual::instance', $vms)
# Users
$users = hiera('users', {})
create_resources('user::manage', $users)
# Backup users
$backup_users = hiera('backup::users', {})
create_resources('backup::user', $backup_users)
# Cron entries
$cron = hiera('cron::jobs', {})
create_resources('cron', $cron)
# Hosts
$hosts = hiera('hosts', {})
create_resources('host', $hosts)
# Nginx entries
$nginx = hiera('nginx::sites', {})
create_resources('nginx::site', $nginx)
# SSH keys
$sshkeys = hiera('sshkeys', {})
create_resources('sshkey', $sshkeys)
# SSH Authorized keys
$ssh_authorized_keys = hiera('ssh_authorized_keys', {})
create_resources('ssh_authorized_key', $ssh_authorized_keys)
# PaX flags
$pax = hiera('nodo::subsystem::grsec::paxctl', {})
create_resources('nodo::subsystem::grsec::paxctl', $pax)
# Exec
$execs = hiera('execs', {})
create_resources('exec', $execs)
# Repositories
$vcsrepos = hiera('vcsrepos', {})
create_resources('vcsrepo', $vcsrepos)
}
|