summaryrefslogtreecommitdiff
path: root/vagrant
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2016-05-24 10:19:20 -0400
committerMicah <micah@leap.se>2016-05-24 10:19:20 -0400
commit2728eed07d93fbd0daa8c4d528597cd156bf2546 (patch)
treeecd7f0b5ec072d762040bce39eaf24c8c3890d25 /vagrant
Squashed 'puppet/modules/openvpn/' content from commit 26d4edc
git-subtree-dir: puppet/modules/openvpn git-subtree-split: 26d4edc669853a268a65d2cbbfb42c19f1333de7
Diffstat (limited to 'vagrant')
-rw-r--r--vagrant/client.pp5
-rw-r--r--vagrant/server.pp23
2 files changed, 28 insertions, 0 deletions
diff --git a/vagrant/client.pp b/vagrant/client.pp
new file mode 100644
index 00000000..7ebeb1d7
--- /dev/null
+++ b/vagrant/client.pp
@@ -0,0 +1,5 @@
+node default {
+
+ package { 'openvpn': ensure => installed; }
+
+}
diff --git a/vagrant/server.pp b/vagrant/server.pp
new file mode 100644
index 00000000..a95def06
--- /dev/null
+++ b/vagrant/server.pp
@@ -0,0 +1,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';
+ }
+}