class mail::postfixadmin {
- # Class configuration
- case $postfixadmin_database_password {
- '': { fail("You need to define \$postfixadmin_database_password host config") }
- }
-
- case $postfixadmin_setup_hash {
- '': {
- warning("You need to define \$postfixadmin_setup_hash host config")
- $postfixadmin_setup_hash = 'changeme'
- }
- }
-
- case $postfixadmin_database_user {
- '': { $postfixadmin_database_user = "postfix" }
- }
-
- case $postfixadmin_database_host {
- '': { $postfixadmin_database_host = "localhost" }
- }
-
- case $postfixadmin_database_name {
- '': { $postfixadmin_database_name= "postfix" }
- }
-
#
# Database configuration
#
class mail::virtual {
+ # Class configuration
+ case $postfixadmin_database_password {
+ '': { fail("You need to define \$postfixadmin_database_password host config") }
+ }
+
+ case $postfixadmin_setup_hash {
+ '': {
+ warning("You need to define \$postfixadmin_setup_hash host config")
+ $postfixadmin_setup_hash = 'changeme'
+ }
+ }
+
+ case $postfixadmin_database_user {
+ '': { $postfixadmin_database_user = "postfix" }
+ }
+
+ case $postfixadmin_database_host {
+ '': { $postfixadmin_database_host = "localhost" }
+ }
+
+ case $postfixadmin_database_name {
+ '': { $postfixadmin_database_name= "postfix" }
+ }
+
# Virtual subsystems
include database
include mail::packages::virtual