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 @@ ...@@ -14,9 +14,8 @@
# include postfix::ldap # include postfix::ldap
# #
class postfix::ldap { class postfix::ldap {
case $::osfamily { if $::osfamily == 'Debian' {
'debian': { package {'postfix-ldap': } } package {'postfix-ldap': }
default: {}
} }
if ! $postfix::ldap_base { if ! $postfix::ldap_base {
...@@ -38,6 +37,6 @@ class postfix::ldap { ...@@ -38,6 +37,6 @@ class postfix::ldap {
owner => 'root', owner => 'root',
group => 'postfix', group => 'postfix',
content => template('postfix/postfix-ldap-aliases.cf.erb'), content => template('postfix/postfix-ldap-aliases.cf.erb'),
#TODO: Figure out if should have require package here before => Package['postfix-ldap'],
} }
} }
Supports Markdown
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