summaryrefslogtreecommitdiffstats
path: root/modules/syncthing
diff options
context:
space:
mode:
Diffstat (limited to 'modules/syncthing')
-rw-r--r--modules/syncthing/manifests/init.pp5
-rw-r--r--modules/syncthing/manifests/user.pp8
2 files changed, 13 insertions, 0 deletions
diff --git a/modules/syncthing/manifests/init.pp b/modules/syncthing/manifests/init.pp
new file mode 100644
index 0000000..4f45f09
--- /dev/null
+++ b/modules/syncthing/manifests/init.pp
@@ -0,0 +1,5 @@
+class syncthing {
+ package { 'syncthing':
+ ensure => installed;
+ }
+}
diff --git a/modules/syncthing/manifests/user.pp b/modules/syncthing/manifests/user.pp
new file mode 100644
index 0000000..dcc1790
--- /dev/null
+++ b/modules/syncthing/manifests/user.pp
@@ -0,0 +1,8 @@
+define syncthing::user {
+ include syncthing
+
+ service { "syncthing@$name":
+ enable => true,
+ ensure => running;
+ }
+}