summaryrefslogtreecommitdiff
path: root/puppet/modules/site_config/manifests/default.pp
blob: 00eee9d0223dddba59651a396131c178dc66be28 (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
class site_config::default {
  tag 'leap_base'

  $domain_hash = hiera('domain')

  include concat::setup

  # default class, used by all hosts

  include lsb, git

  # configure apt
  include site_apt

  # configure ssh and include ssh-keys
  include site_config::sshd

  # fix dhclient from changing resolver information
  if $::ec2_instance_id {
    include site_config::dhclient
  }

  # configure /etc/resolv.conf
  include site_config::resolvconf

  # configure caching, local resolver
  include site_config::caching_resolver

  # configure /etc/hosts
  class { 'site_config::hosts':
    stage => setup,
  }

  # install/remove base packages
  include site_config::base_packages

  # include basic shorewall config
  include site_shorewall::defaults

  Class['git'] -> Vcsrepo<||>

  # include basic shell config
  include site_config::shell
}