diff options
-rw-r--r-- | manifests/partofme.pp | 4 | ||||
-rw-r--r-- | modules/partofme/manifests/backups.pp | 5 | ||||
-rw-r--r-- | modules/syncthing/manifests/init.pp | 5 | ||||
-rw-r--r-- | modules/syncthing/manifests/user.pp | 8 |
4 files changed, 20 insertions, 2 deletions
diff --git a/manifests/partofme.pp b/manifests/partofme.pp index b5f85e6..ac0ddc5 100644 --- a/manifests/partofme.pp +++ b/manifests/partofme.pp @@ -11,6 +11,8 @@ node 'partofme.localdomain' { default_user => $default_user; } - include partofme::backups + class { 'partofme::backups': + default_user => $default_user; + } include partofme::vpn } diff --git a/modules/partofme/manifests/backups.pp b/modules/partofme/manifests/backups.pp index 349c4ae..a497b25 100644 --- a/modules/partofme/manifests/backups.pp +++ b/modules/partofme/manifests/backups.pp @@ -1,3 +1,6 @@ -class partofme::backups { +class partofme::backups($default_user) { include duplicati + + syncthing::user { $default_user: + } } 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; + } +} |