summaryrefslogtreecommitdiffstats
path: root/modules/syncthing
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-15 01:06:52 -0500
committerJesse Luehrs <doy@tozt.net>2018-11-15 01:06:52 -0500
commit2c44e9a2ce63afe115011435b63b1f9bfd27f76d (patch)
tree8c599d15aca6963da7942b51310c160a65a75d9d /modules/syncthing
parent226e15f10142b44358a1eb319c1c10da59c0543a (diff)
downloadpuppet-tozt-2c44e9a2ce63afe115011435b63b1f9bfd27f76d.tar.gz
puppet-tozt-2c44e9a2ce63afe115011435b63b1f9bfd27f76d.zip
install syncthing
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;
+ }
+}