Refactoring trying to fix some logic issues

This commit is contained in:
Sander van Harmelen
2014-07-01 22:30:55 +02:00
parent 5195682a0d
commit 489bfaacbe
11 changed files with 180 additions and 135 deletions

View File

@@ -14,15 +14,15 @@
# limitations under the License.
#
include_recipe "postfix"
include_recipe 'postfix::_common'
execute "update-postfix-transport" do
execute 'update-postfix-transport' do
command "postmap #{node['postfix']['transport_db']}"
environment PATH: "#{ENV['PATH']}:/opt/omni/bin:/opt/omni/sbin" if platform_family?('omnios')
action :nothing
end
template node['postfix']['transport_db'] do
source "transport.erb"
notifies :run, "execute[update-postfix-transport]"
source 'transport.erb'
notifies :run, 'execute[update-postfix-transport]'
end