Skip to content

Instantly share code, notes, and snippets.

@travisdmathis
Created October 3, 2012 02:58
Show Gist options
  • Select an option

  • Save travisdmathis/3824692 to your computer and use it in GitHub Desktop.

Select an option

Save travisdmathis/3824692 to your computer and use it in GitHub Desktop.
template "/tmp/registration.rb" do
source "host_registration.erb"
owner "root"
group "root"
mode "755"
end
script "configure_host" do
interpreter "bash"
user "root"
cwd "/tmp"
action :nothing
code <<-EOH
./registration.rb
EOH
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment