Created
October 21, 2011 03:57
-
-
Save jro/1303065 to your computer and use it in GitHub Desktop.
mod_security: prepare chef-repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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]" | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
knife bootstrap SERVER_IP -r 'role[base]' -x root -P ROOT_PASSWORD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
knife cookbook site install chef-client | |
knife cookbook site install build-essential | |
knife cookbook site install apache2 | |
knife cookbook site install mod_security |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add proxy for demo | |
mod_secure_proxy "testfire" do | |
server_name "demo.testfire.net" | |
#enable_https true | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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