diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-22 17:42:26 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-22 17:42:26 -0200 |
commit | c0024c4eb335f4b2406662586c1f69617f79ce8b (patch) | |
tree | 4da895b48c857a78751e9b35d9a0a3bb2ef57789 /manifests/virtual | |
parent | 7e8504abeef5559dd1bcda3114e21906c0b3b4ab (diff) | |
download | puppet-mail-c0024c4eb335f4b2406662586c1f69617f79ce8b.tar.gz puppet-mail-c0024c4eb335f4b2406662586c1f69617f79ce8b.tar.bz2 |
Adding default parameters into classes
Diffstat (limited to 'manifests/virtual')
-rw-r--r-- | manifests/virtual/web.pp | 8 | ||||
-rw-r--r-- | manifests/virtual/web/params.pp | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/manifests/virtual/web.pp b/manifests/virtual/web.pp index bf826ef..3491839 100644 --- a/manifests/virtual/web.pp +++ b/manifests/virtual/web.pp @@ -1,8 +1,8 @@ class mail::virtual::web( - $postfixadmin_setup_hash = hiera('mail::virtual::web::postfixadmin_setup_hash', ''), - $roundcube_des_key = hiera('mail::virtual::web::roundcube_des_key', ''), - $roundcube_logo = hiera('mail::virtual::web::roundcube_logo', 'null'), - $roundcube_login_info = hiera('mail::virtual::web::roundcube_login_info', false) + $postfixadmin_setup_hash = hiera('mail::virtual::web::postfixadmin_setup_hash', $mail::virtual::web::params::postfixadmin_setup_hash), + $roundcube_des_key = hiera('mail::virtual::web::roundcube_des_key', $mail::virtual::web::params::roundcube_des_key), + $roundcube_logo = hiera('mail::virtual::web::roundcube_logo', $mail::virtual::web::params::roundcube_logo), + $roundcube_login_info = hiera('mail::virtual::web::roundcube_login_info', $mail::virtual::web::params::roundcube_login_info) ) { # Class configuration diff --git a/manifests/virtual/web/params.pp b/manifests/virtual/web/params.pp new file mode 100644 index 0000000..c6ae14c --- /dev/null +++ b/manifests/virtual/web/params.pp @@ -0,0 +1,6 @@ +class mail::virtual::web::params { + $postfixadmin_setup_hash = '' + $roundcube_des_key = '' + $roundcube_logo = 'null' + $roundcube_login_info = false +} |