aboutsummaryrefslogtreecommitdiff
path: root/manifests/resources.pp
blob: 8fe188fef6816097de3d62cb7219e2125d44a238 (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
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 = lookup('packages', undef, undef, {})
  create_resources('package', $packages)

  # Files
  $files = lookup('files', undef, undef, {})
  create_resources('file', $files)

  # File lines
  $file_lines = lookup('file_lines', undef, undef, {})
  create_resources('file_line', $file_lines)

  # Virtual machines
  $vms = lookup('virtual::machines', undef, undef, {})
  create_resources('nodo::subsystem::virtual::instance', $vms)

  # Users
  $users = lookup('users', undef, undef, {})
  create_resources('user::manage', $users)

  # Backup users
  $backup_users = lookup('backup::users', undef, undef, {})
  create_resources('backup::user', $backup_users)

  # Cron entries
  $cron = lookup('cron::jobs', undef, undef, {})
  create_resources('cron', $cron)

  # Hosts
  $hosts = lookup('hosts', undef, undef, {})
  create_resources('host', $hosts)

  # Nginx entries
  $nginx = lookup('nginx::sites', undef, undef, {})
  create_resources('nginx::site', $nginx)

  # SSH keys
  $sshkeys = lookup('sshkeys', undef, undef, {})
  create_resources('sshkey', $sshkeys)

  # SSH Authorized keys
  $ssh_authorized_keys = lookup('ssh_authorized_keys', undef, undef, {})
  create_resources('ssh_authorized_key', $ssh_authorized_keys)

  # PaX flags
  $pax = lookup('nodo::subsystem::grsec::paxctl', undef, undef, {})
  create_resources('nodo::subsystem::grsec::paxctl', $pax)

  # Exec
  $execs = lookup('execs', undef, undef, {})
  create_resources('exec', $execs)

  # Repositories
  $vcsrepos = lookup('vcsrepos', undef, undef, {})
  create_resources('vcsrepo', $vcsrepos)
}