Skip to content

Instantly share code, notes, and snippets.

@jtslear
Created May 29, 2015 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtslear/c731c1a591c73d9ad339 to your computer and use it in GitHub Desktop.
Save jtslear/c731c1a591c73d9ad339 to your computer and use it in GitHub Desktop.
secret_test_web_app.rb
dev_mode = node[:dev_mode]
if dev_mode
chef_gem 'sinatra'
cookbook_file '/etc/init.d/test-web-app' do
mode '0755'
source 'test-web-app'
end
cookbook_file '/root/test-web-app.rb' do
mode '0755'
source 'test-web-app.rb'
end
service 'test-web-app' do
action :start
supports :status => false
pattern 'ruby'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment