Symfony2 website deployment
- Ubuntu 12.04
- 'apt'
- 'application'
- 'application_php'
- 'symfony2'
- 'htop'
- 'mysql'
- 'curl'
- 'java'
- 'npm'
- 'nodejs'
- 'mysql'
- 'git'
- 'php'
- 'composer'
Key | Type | Description | Default |
---|---|---|---|
['app']['name'] | String | symfony | |
['app']['path'] | String | /site | |
['app']['repository'] | String | git@bitbucket.org:user/repo.git | |
['app']['deploy_key'] | String | ||
['app']['revision'] | String | master | |
['app']['force_deploy'] | Boolean | false | |
['app']['user'] | String | node[:apache][:user] | |
['app']['group'] | String | node[:apache][:group] | |
['app']['secret'] | String | change-me | |
['app']['packages'] | Array | ["acl", "php5-intl", "php5-gd", "php5-curl", "php5-mysql", "php5-xdebug", "php-apc"] | |
['app']['node']['packages'] | Array | ["less", "coffee-script"] | |
['app']['node']['install_method'] | String | package | |
['app']['node']['path'] | String | ||
['app']['node']['modules'] | String | ||
['app']['coffee']['path'] | String | /usr/local/bin/coffee | |
['app']['java']['path'] | String | /usr/bin/java | |
['app']['email']['name'] | String | Symfony | |
['app']['email']['address'] | String | noreply@example.com | |
['app']['mailer']['transport'] | String | smtp | |
['app']['mailer']['encryption'] | String | tls | |
['app']['mailer']['auth_mode'] | String | login | |
['app']['mailer']['host'] | String | 127.0.0.1 | |
['app']['mailer']['port'] | Integer | 25 | |
['app']['mailer']['user'] | String | ~ | |
['app']['mailer']['password'] | String | ~ | |
['app']['mailer']['enckey_path'] | String | /etc/chef/keys/smtp.key | |
['app']['database']['host'] | String | localhost | |
['app']['database']['port'] | Integer | ~ | |
['app']['database']['name'] | String | symfony | |
['app']['database']['user'] | String | root | |
['app']['database']['password'] | String | ~ | |
['app']['database']['enckey_path'] | String | /etc/chef/keys/mysql.key | |
['app']['database']['force_update'] | Boolean | false | |
['app']['database']['create'] | Boolean | false |
Just include symfony2-chef
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[symfony2-chef]"
]
}
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: TODO:
-
Robert Dolca
-
Copyright 2013, Robert Dolca
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.