summaryrefslogtreecommitdiff
path: root/puppet/manifests/site.pp
blob: bb29e39384cc3e6d949156d25914622e8d0e76e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
define print() {
   notice("The value is: '${name}'")
}
 

node 'default' {
  #$password=hiera('testpw')
  #notify {"Password: $password":}

  $services=hiera_array('services')
  notice("Services for $fqdn: $services")

  if 'eip' in $services {
    $openvpn_ports=hiera_array('openvpn_ports')
    $tor=hiera('tor')
    notice("Openvpn Config for $fqdn: openvpn_ports=$openvpn_ports, tor=$tor")
    print{$openvpn_ports:}
    #include site_openvpn
  }


}