This cookbook is for setting up PGD project for easy development.
For testing you need the following gems:
test-kitchen
kitchen-vagrant
If you use berkshelf, you also will want to install the berkshelf
gem as well.
To install dependencies run 'bundle install' in the root of the directory.
Key | Type | Description | Default |
---|---|---|---|
['pgd']['pgd_path'] | String | Full path to the location PGD gets cloned. Note: This is not where it is installed. | |
['pgd']['virtualenv_path'] | String | Where to actually install PGD to. This is the location setup.sh will create GWM's virtualenv | nil |
['pgd']['user'] | String | User to change to when running commands | nil |
['pgd']['group'] | String | Group to change to when running commands | nil | ['pgd']['debug'] | Boolean | Whether or not to set the Django debug mode on or off | false |
['pgd']['static_root'] | String | Absolute path to where you want staticfiles to be collected to | /opt/pgd/collected_static |
['pgd']['static_url'] | String | Url to find GWM's static files at. | /static |
['pgd']['database']['engine'] | String | See https://docs.djangoproject.com/en/1.6/ref/settings/#databases | nil #This default value will break the cookbook. |
['pgd']['database']['name'] | String | See https://docs.djangoproject.com/en/1.6/ref/settings/#databases | nil |
['pgd']['database']['user'] | String | See https://docs.djangoproject.com/en/1.6/ref/settings/#databases | nil |
['pgd']['database']['password'] | String | See https://docs.djangoproject.com/en/1.6/ref/settings/#databases | nil |
['pgd']['database']['host'] | String | See https://docs.djangoproject.com/en/1.6/ref/settings/#databases | nil |
['pgd']['database']['port'] | String | See https://docs.djangoproject.com/en/1.6/ref/settings/#databases | nil |
Just include pgd_cookbook
in your node's run_list
.
{
"name":"my_node",
"run_list": [
"recipe[pgd_cookbook]"
]
}
Just include pgd_cookbook::bootstrap_user
in addition to one of the previous
recipes in run_list
:
{
"name":"my_node",
"run_list": [
"recipe[pgd_cookbook::default]"
"recipe[pgd_cookbook::bootstrap_user]"
]
}
Then set the attribute node['pgd']['superuser']
to something like
this:
{
"username": "foo",
"password": "bar",
"email": "foo@bar.com"
}
TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.
e.g.
add_component_x
)Authors: TODO: List authors