Skip to content

Instantly share code, notes, and snippets.

@jro
Created October 21, 2011 03:57
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 jro/1303065 to your computer and use it in GitHub Desktop.
Save jro/1303065 to your computer and use it in GitHub Desktop.
mod_security: prepare chef-repo
{
"name": "base",
"chef_type": "role",
"json_class": "Chef::Role",
"description": "The base role for our test",
"run_list": [
"recipe[chef-client]",
"recipe[apache2]",
"recipe[mod_security]"
]
}
knife bootstrap SERVER_IP -r 'role[base]' -x root -P ROOT_PASSWORD
knife cookbook site install chef-client
knife cookbook site install build-essential
knife cookbook site install apache2
knife cookbook site install mod_security
# Add proxy for demo
mod_secure_proxy "testfire" do
server_name "demo.testfire.net"
#enable_https true
end
knife role from file roles/base.json
knife cookbook upload chef-client
knife cookbook upload build-essential
knife cookbook upload apache2
knife cookbook upload mod_security
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment