Installs and configures resourcespace
Tested on Ubuntu 12.04
| Key | Type | Description | Default |
|---|---|---|---|
| ['resourcespace']['config']['mysql'] | Hash | Hash that contains the database connection configuration. Without this the recipe won't work | n/a (required) |
| ['resourcespace']['config']['baseurl'] | String | The base url of the resourcespace installation | n/a (required) |
| ['resourcespace']['config']['email'] | Hash | Hash that contains the email configs for the resourcespace configuration | n/a (required) |
| ['resourcespace']['config']['spider_password'] | String | Make sure to create a secure one! | n/a (required) |
| ['resourcespace']['config']['scramble_key'] | String | Make sure to create a secure one! | n/a (required) |
| ['resourcespace']['config']['api_scramble_key'] | String | Make sure to create a secure one! | n/a (required) |
| ['resourcespace']['revision'] | String | revision of the resourcespace source to checkout | HEAD |
| ['resourcespace']['root_dir'] | String | Directory to place the resourcespace installation | /var/www/resourcespace |
| 'resourcespace']['config']['others'] | Hash | Other resourcespace configurations | none (optional) |
Include chef-resourcespace in your node's run_list:
{
"run_list": [
"recipe[resourcespace]"
]
}Make sure to add the required json attributes. An example if you are using Vagrant:
config.vm.provision :chef_solo do |chef|
chef.run_list = [
"recipe[resourcespace]"
]
chef.json = {
mysql: {
server_debian_password: 'securedebpass',
server_root_password: 'securerootpass',
server_repl_password: 'securereplpass'
},
resourcespace: {
config: {
mysql: {
mysql_server: 'localhost',
mysql_username: 'resourcespace',
mysql_password: 'super_secret',
mysql_db: 'resourcespace'
},
baseurl: 'http://localhost:10080',
email: {
email_from: 'resourcespace@example.com',
email_notify: 'resourcespace@example.com'
},
spider_password: 'mytuba5aSEGA',
scramble_key: '5YvAhAgYdyny',
api_scramble_key: 'nEQYXATUmuzU'
}
}
}
endWhen asked for a login, Resourcespace's default username and password is admin
- Fork the repository on Github
- Create a named feature branch (i.e.
add-new-recipe) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request
Author:: Lester Celestial (lesterc@sourcepad.com)
Copyright 2009-2014 SourcePad, Inc
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.