ready for 2.7 module structure
authorRaffael Schmid <raffael@yux.ch>
Fri, 10 Feb 2012 15:32:16 +0000 (16:32 +0100)
committerRaffael Schmid <raffael@yux.ch>
Fri, 10 Feb 2012 15:32:16 +0000 (16:32 +0100)
manifests/classes/openvpn.pp [deleted file]
manifests/client.pp [moved from manifests/definitions/client.pp with 100% similarity]
manifests/init.pp
manifests/option.pp [moved from manifests/definitions/option.pp with 100% similarity]
manifests/push.pp [moved from manifests/definitions/push.pp with 100% similarity]
manifests/route.pp [moved from manifests/definitions/route.pp with 100% similarity]
manifests/server.pp [moved from manifests/definitions/server.pp with 100% similarity]

diff --git a/manifests/classes/openvpn.pp b/manifests/classes/openvpn.pp
deleted file mode 100644 (file)
index 55dac85..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-# openvpn.pp
-
-class openvpn {
-    package {
-        "openvpn":
-            ensure => installed;
-    }
-    service {
-        "openvpn":
-            ensure     => running,
-            hasrestart => true,
-            hasstatus  => true,
-            require    => Exec["/etc/default/openvpn concatenation"];
-    }
-    file {
-        "/etc/openvpn":
-            ensure  => directory,
-            require => Package["openvpn"];
-    }
-    file {
-        "/etc/openvpn/keys":
-            ensure  => directory,
-            require => File["/etc/openvpn"];
-    }
-    common::concatfilepart {
-        "00-etc-default-openvpn header":
-            ensure  => present,
-            content => template("openvpn/etc-default-openvpn.erb"),
-            notify  => Service["openvpn"],
-            file    => "/etc/default/openvpn";
-    }
-}
index bab81f2..55dac85 100644 (file)
@@ -1,4 +1,32 @@
-# init.pp
+# openvpn.pp
 
-import "classes/*.pp"
-import "definitions/*.pp"
+class openvpn {
+    package {
+        "openvpn":
+            ensure => installed;
+    }
+    service {
+        "openvpn":
+            ensure     => running,
+            hasrestart => true,
+            hasstatus  => true,
+            require    => Exec["/etc/default/openvpn concatenation"];
+    }
+    file {
+        "/etc/openvpn":
+            ensure  => directory,
+            require => Package["openvpn"];
+    }
+    file {
+        "/etc/openvpn/keys":
+            ensure  => directory,
+            require => File["/etc/openvpn"];
+    }
+    common::concatfilepart {
+        "00-etc-default-openvpn header":
+            ensure  => present,
+            content => template("openvpn/etc-default-openvpn.erb"),
+            notify  => Service["openvpn"],
+            file    => "/etc/default/openvpn";
+    }
+}