Skip to content

Installs Redmine v2, a Ruby on Rails ticket tracking and wiki tool

Notifications You must be signed in to change notification settings

aminin/redmine2-cookbook

Repository files navigation

Redmine2 Cookbook

Build Status Dependencies

Installs Redmine v2, a Ruby on Rails ticket tracking and wiki tool

Requirements

Platform

Tested on ubuntu 12.04, 14.04

cookbooks

Attributes

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

Usage

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])
}

Runing tests

bundle exec rake foodcritic
bundle exec rake kitchen:all

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: TODO: List authors

About

Installs Redmine v2, a Ruby on Rails ticket tracking and wiki tool

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages