Chef cookbook for creating Mushroom Observer (http://mushroomobserver.org) systems
e.g.
build-essential
- need to be able to build stuff.mysql
- good old MySQL (really should try Postgres one of these days)database
- gotta have a database (got this from the EOL recipe, not sure what it does yet)
e.g.
Key | Type | Description | Default |
---|---|---|---|
['rails_environment'] | 'test', 'development' or 'production' | Indicates which database should be created. | development |
['mo_db_pass'] | string | Password for the 'mo' database user. | secure_password |
['repo_path'] | string | Path for the local mushroom repository. |
default is what most users will do most of the time which is create a standalone development machine
{
"name":"my_node",
"run_list": [
"recipe[chef-mushroomobserver]"
]
}
standalone recipe loads the test database
{
"name":"my_node",
"run_list": [
"recipe[chef-mushroomobserver::standalone]"
]
}
production recipe gets and loads the production database and does all the other stuff needed for the production machine
{
"name":"my_node",
"run_list": [
"recipe[chef-mushroomobserver::production]"
]
}
dump_production recipe dumps the current production database and copies it to files/prod.sql. Requires ssh access to the production machine.
{
"name":"my_node",
"run_list": [
"recipe[chef-mushroomobserver::dump_production]"
]
}
create_init recipe creates an updated version of init.sql which contains no private information and can be used to bootstrap the development environment. Requires the existence of the prod.sql which requires ssh access to the production machine.
{
"name":"my_node",
"run_list": [
"recipe[chef-mushroomobserver::dump_production]"
]
}
db recipe installs and does basic configuration of the database. This recipe is not expected to be run by itself.
app recipe installs Ruby, gems and the MO source code. This recipe is not expected to be run by itself.
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Copyright Notice: Copyright (c) © 2006-2017 Mushroom Observer, Inc. Authors: Nathan Wilson License: MIT (like all things Mushroom Observer)