New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the user to pass a site template file #183

Merged
merged 1 commit into from Mar 14, 2015

Conversation

Projects
None yet
2 participants
@jenssegers

This is something I started using while I was going through the Deis cookbooks: https://github.com/opdemand/deis-cookbook/blob/master/definitions/nginx_site.rb

This addition allows users to pass a template and variables to create an nginx site. I use it in a few of my own cookbooks like this:

nginx_site "munin" do
    template "site.erb"
    variables ({
        :listen => node.munin.port,
        :root => node.munin.www
    )}
    action :enable
end

@miketheman miketheman added this to the Triage milestone Aug 23, 2014

miketheman added a commit that referenced this pull request Mar 14, 2015

Merge pull request #183 from jenssegers/master
Allow the user to pass a site template file

@miketheman miketheman merged commit ba610d1 into chef-cookbooks:master Mar 14, 2015

1 check failed

default The Travis CI build failed
Details

@miketheman miketheman modified the milestones: 2.7.5, Triage Round 1 Mar 14, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment