diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-12-29 14:43:40 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-12-29 14:43:40 -0200 |
commit | d6964082b9719978ebe96744c7c659e701bb264d (patch) | |
tree | 697827ec63f7e1a218291ef25020ec6b65fb0710 | |
parent | 9c0a1fa5351f327cb968b27e93f0f410c4130867 (diff) | |
download | puppet-pyroscope-d6964082b9719978ebe96744c7c659e701bb264d.tar.gz puppet-pyroscope-d6964082b9719978ebe96744c7c659e701bb264d.tar.bz2 |
Support for configurable pyroscope::groups
-rw-r--r-- | manifests/init.pp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index bdfca0a..106e05b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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': |