diff options
author | Pascal Terjan <pterjan@mageia.org> | 2018-09-12 13:35:45 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2018-09-12 13:35:45 +0000 |
commit | 7ada898419b47adb68b2bfa1c18b5ea6cbdfe03a (patch) | |
tree | c7265c558904e3a54890254f95e8f2da550356b5 /modules | |
parent | 9b8b6d1dfa78b745836a5929c66c23ed97e87827 (diff) | |
download | puppet-7ada898419b47adb68b2bfa1c18b5ea6cbdfe03a.tar puppet-7ada898419b47adb68b2bfa1c18b5ea6cbdfe03a.tar.gz puppet-7ada898419b47adb68b2bfa1c18b5ea6cbdfe03a.tar.bz2 puppet-7ada898419b47adb68b2bfa1c18b5ea6cbdfe03a.tar.xz puppet-7ada898419b47adb68b2bfa1c18b5ea6cbdfe03a.zip |
Require a password to create new polls
Diffstat (limited to 'modules')
-rw-r--r-- | modules/epoll/manifests/var.pp | 7 | ||||
-rw-r--r-- | modules/epoll/templates/epoll.yml | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/modules/epoll/manifests/var.pp b/modules/epoll/manifests/var.pp index e99239ce..1ddc342a 100644 --- a/modules/epoll/manifests/var.pp +++ b/modules/epoll/manifests/var.pp @@ -19,12 +19,17 @@ # [*db_password*] # password to connect to the database # +# [*password*] +# password to create new polls +# + class epoll::var ( $vhost = "epoll.${::domain}", $db_hostname = 'localhost', $db_name = 'epoll', $db_user = 'epoll', - $db_password + $db_password, + $password ) { } # vim: sw=2 diff --git a/modules/epoll/templates/epoll.yml b/modules/epoll/templates/epoll.yml index a6d078ff..d442a41e 100644 --- a/modules/epoll/templates/epoll.yml +++ b/modules/epoll/templates/epoll.yml @@ -8,4 +8,4 @@ db: dbname=<%= scope.lookupvar('epoll::var::db_name') %>;host=<%= scope.lookupva # This change the poll creation behavior, instead ask want confirmation by # mail # it ask for this password (in clear) -# newpollpasswd: +newpollpasswd: <%= scope.lookupvar('epoll::var::password') %> |