Puppet Class: roadwarrior::params

Defined in:
manifests/params.pp

Overview



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
# File 'manifests/params.pp', line 5

class roadwarrior::params {

  # TODO: This will be Debian specific
  # Define all the packages we need for StrongSwan and the plugins (in particular EAP-TLS).
  # Note moreutils is there to provide additional tools to help with generating client config files.
  $packages_strongswan = ['strongswan', 'libstrongswan-standard-plugins', 'libstrongswan-extra-plugins', 'libcharon-extra-plugins', 'moreutils']

  # TODO: This will (probably) be Debian specific
  # Define the name of the service.
  $service_strongswan = 'strongswan'

  # By default, we should manage the firewall. Ideally the user will be taking
  # advantage of puppetlabs/firewall to manage their ruleset, but if another
  # firewall module or technology is being used (eg AWS security groups) it's
  # easy enough to disable our management of the firewall.
  $manage_firewall_v4 = true
  $manage_firewall_v6 = true

  # Name the VPN based on the hostname by default. This name is then used to
  # populate all the certs that is generated, so pick a name you wish to keep,
  # since changing means re-generating all the client certs/config.
  $vpn_name = $::fqdn

  # Default IP range for the VPN clients to use
  $vpn_range_v4 = '10.10.10.0/24'

  # Route to push through to the clients
  $vpn_route_v4 = '192.168.0.0/16'

  # DNS Servers that will override those already configured on clients
  $vpn_dns_servers = ''

  # Debug logging - Enabled additional log information
  $debug_logging = true

  # Certificate Params.
  $cert_dir        = '/etc/ipsec.d'  # This shouldn't be changed unless to suit packaging differences on distros
  $cert_lifespan   = '3650'          # Expiry of the certs in days (3650 == 10 years)


  # Default password for PKCS12 files. This is required by the format so must
  # be set to something - it's perfectly OK to leave it as "password" if
  # desired.  Note that any clients will have access to this password, so don't
  # use an existing password, or they could recover it from the mobile config
  # and use it to log into things!!
  $cert_password   = 'password'
}