Installs Redmine v2, a Ruby on Rails ticket tracking and wiki tool
Tested on ubuntu 12.04, 14.04
- postgresql
- rbenv
- ruby_build
- nginx
- runit
- database
Key | Type | Description | Default |
---|---|---|---|
['redmine']['home'] | String | Location for Redmine application | /home/redmine |
['redmine']['host'] | String | Redmine Domain | redmine.example.com |
['redmine']['user'] | String | Owner of redmine files | redmine |
['redmine']['ruby_version'] | String | Redmine Ruby Version | 1.9.3-p484 |
['redmine']['version'] | String | Redmine version | 2.6.1 |
['redmine']['db']['type'] | String | Type of redmine database | postgresql |
['redmine']['db']['dbname'] | String | Redmine DB name | redmine |
['redmine']['db']['username'] | String | Redmine DB user | redmine |
['redmine']['db']['hostname'] | String | Redmine DB host | localhost |
['redmine']['db']['password'] | String | Redmine DB password | 123456 |
['redmine']['themes'] | Array | Redmine extra themes | empty |
['redmine']['plugins'] | Array | Redmine plugins | empty |
To install via berkshelf add to your Berksfile the following lines
cookbook 'rbenv', git: 'https://github.com/aminin/chef-rbenv'
cookbook 'redmine2', git: 'https://github.com/aminin/redmine2-cookbook'
and run berks install
Configure your role/node e.g.:
{
nginx: {
default_site_enabled: false # Disable default nginx site
},
redmine: {
host: 'redmine.dev',
db: {
password: '<top-secret1>'
},
plugins: [
{
name: 'redmine_github_hook',
type: 'git',
source: 'https://github.com/koppen/redmine_github_hook.git'
}
],
themes: [
{
name: 'pixel-cookers',
type: 'git',
source: 'https://github.com/pixel-cookers/redmine-theme.git'
}
],
config: {
email: {
smtp_settings: {
address: smtp.yandex.ru
port: 465
ssl: true
enable_starttls_auto: true
domain: redmine.dev
authentication: :login
user_name: 'redmine@redmine.dev'
password: '<top-secret123>'
}
}
}
},
postgresql: {
password: {
postgres: '<top-secret2>' # Need admin access to create redmine DB
}
},
run_list: %w(recipe[postgresql::server] recipe[redmine2] recipe[redmine2::themes] recipe[redmine2::plugins])
}
bundle exec rake foodcritic
bundle exec rake kitchen:all
- 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
Authors: TODO: List authors