Commit 61761ea0 authored by Ben Hocker's avatar Ben Hocker
Browse files

Cleaning up code

- Moving package postfix-ldap to if statement
- Trying before package on the /etc/postfix/ldap-aliases.cf file
parent b9fe74da
......@@ -14,9 +14,8 @@
# include postfix::ldap
#
class postfix::ldap {
case $::osfamily {
'debian': { package {'postfix-ldap': } }
default: {}
if $::osfamily == 'Debian' {
package {'postfix-ldap': }
}
if ! $postfix::ldap_base {
......@@ -38,6 +37,6 @@ class postfix::ldap {
owner => 'root',
group => 'postfix',
content => template('postfix/postfix-ldap-aliases.cf.erb'),
#TODO: Figure out if should have require package here
before => Package['postfix-ldap'],
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment