Make staticsync a module and update references
[mirror/dsa-puppet.git] / modules / staticsync / manifests / init.pp
diff --git a/modules/staticsync/manifests/init.pp b/modules/staticsync/manifests/init.pp
new file mode 100644 (file)
index 0000000..7b8a106
--- /dev/null
@@ -0,0 +1,15 @@
+# A base class for staticsync.  This owns the configuration variables, which
+# should be set by hiera.
+class staticsync (
+  String $user,
+  String $basedir,
+  # for ssh/firewalling purposes
+  Array[Stdlib::IP::Address] $public_addresses = $base::public_addresses,
+) {
+  if ! $user {
+    fail('Variable $user is not set.  Please provide a value (for instance via hiera).')
+  }
+  if ! $basedir {
+    fail('Variable $basedir is not set.  Please provider a value (for instance via hiera).')
+  }
+}