]> gitweb.fluxo.info Git - puppet-pyroscope.git/commitdiff
Support for configurable pyroscope::groups
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 29 Dec 2016 16:43:40 +0000 (14:43 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 29 Dec 2016 16:43:40 +0000 (14:43 -0200)
manifests/init.pp

index bdfca0a619169550bdaec013163daab135c2933a..106e05bdb9f01bb2544f8d5157adfb0486ccb14d 100644 (file)
@@ -1,5 +1,6 @@
 class pyroscope(
-  $password = hiera('pyroscope::password', '')
+  $password = hiera('pyroscope::password', ''),
+  $groups   = hiera('pyroscope::groups',   [ 'incoming' ]),
 ) {
   case $password {
     '': { fail("You need to define torrent user password! Please set pyroscope::password in your config") }
@@ -9,7 +10,7 @@ class pyroscope(
     password => $password,
     homedir  => '/var/cache/torrent',
     ensure   => present,
-    groups   => [ 'incoming' ],
+    groups   => $groups,
   }
 
   file { '/var/cache/media/seeding':