#
# Database configuration
#
- case $postfixadmin_password {
- '': { fail("You need to define \$postfixadmin_password host config") }
- }
-
- case $postfixadmin_user {
- '': { $postfixadmin_user = "postfix" }
- }
-
- case $postfixadmin_hosts {
- '': { $postfixadmin_hosts = "localhost" }
- }
-
- case $postfixadmin_dbname {
- '': { $postfixadmin_dbname= "postfix" }
- }
-
database::instance { "$postfixadmin_dbname":
password => "$postfixadmin_password",
}
'': { $postfix_mynetworks = "127.0.0.0/8" }
}
+ case $postfixadmin_password {
+ '': { fail("You need to define \$postfixadmin_password host config") }
+ }
+
+ case $postfixadmin_user {
+ '': { $postfixadmin_user = "postfix" }
+ }
+
+ case $postfixadmin_hosts {
+ '': { $postfixadmin_hosts = "localhost" }
+ }
+
+ case $postfixadmin_dbname {
+ '': { $postfixadmin_dbname= "postfix" }
+ }
+
# Module requirements
include postfix
include database