The purpose here is to give an example of how to use the stant/bundle-apache-java-tomcat cookbook, which aims to be a simple way to set up a list of web sites.
Chef supported linuxes.
Key | Type | Description | Default |
---|---|---|---|
attributes for project stant/bundle-apache-java-tomcat | see: bundle-apache-java-tomcat | The attributes below are from: stant/bundle-apache-java-tomcat | |
['bajt']['apache']['create_demo_index_htmls'] | Boolean | If true, this will create simple ['bajt']['apache']['docroot']/index.html pages for each web site created. | false |
['bajt']['apache']['docroot'] | String | main root path to apache doc files. | /var/www |
attributes for project svanzoest/apache2-cookbook | see: apache | ||
attributes for project agileorbit-cookbooks/java | see: java | ||
attributes for project opscode-cookbooks/tomcat | see: tomcat |
Include bundle-apache-java-tomcat-example
in your node's run_list
:
{
"run_list": [
"recipe[bundle-apache-java-tomcat-example::default]"
]
}
33.33.33.13 apache1.com
override['bajt']['apache_webapps'] =
{
"apache1" => { "name" => "apache1",
"server_name" => "apache1.com",
"server_name_aliases" => ["my.apache1.com"],
"template" => 'webapp.conf.erb',
"src_url" => 'http://10.0.2.2:81/website2.zip'
}
}
create 1 apache web site at the host name above.
Author:: Stan Towianski ([email protected])