Skip to content

Instantly share code, notes, and snippets.

@bigbigbang
Created July 11, 2013 14:33
Show Gist options
  • Save bigbigbang/5975992 to your computer and use it in GitHub Desktop.
Save bigbigbang/5975992 to your computer and use it in GitHub Desktop.
template example
postgresql_config = File.join(postgresql_data_dir, "postgresql.conf")
template postgresql_config do
source "postgresql.conf.erb"
owner node['chef_server']['postgresql']['username']
mode "0644"
variables(node['chef_server']['postgresql'].to_hash)
notifies :restart, 'service[postgresql]' if OmnibusHelper.should_notify?("postgresql")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment