summaryrefslogtreecommitdiff
path: root/puppet/modules/openvpn/vagrant/server.pp
blob: a95def0680df7967d60f70df0a2b3bfa7ec1b5fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
node default {
  openvpn::server { 'winterthur':
    country      => 'CH',
    province     => 'ZH',
    city         => 'Winterthur',
    organization => 'example.org',
    email        => 'root@example.org',
    server       => '10.200.200.0 255.255.255.0'
  }

  openvpn::client { 'client1':
    server => 'winterthur';
  }

  openvpn::client_specific_config { 'client1':
    server   => 'winterthur',
    ifconfig => '10.200.200.100 255.255.255.0'
  }

  openvpn::client { 'client2':
    server => 'winterthur';
  }
}