Puppet Class: redmine

Defined in:
manifests/init.pp

Summary

Install redmine, running behind apache and passenger and backed by eiter mysql or maria-db

Overview

@param provider

The VCS provider or wget.
When setting the provider to wget, be sure to set download_url
to a valid tar.gz archive.
To use the svn provider you have to provide the full url to the
tag or branch you want to download and unset the version.

Parameters:

  • version (String) (defaults to: undef)

    Set to desired version.

  • download_url (Stdlib::HTTPUrl) (defaults to: 'https://github.com/redmine/redmine')

    Download URL for redmine tar.gz when using wget as the provider. The repository url otherwise. When using wget, be sure to provide the full url. Default: github.com/redmine/redmine

  • database_server (String) (defaults to: 'localhost')

    Database server to use. If server is not on localhost, the database and user must be setup in advance.

  • database_user (String) (defaults to: 'redmine')

    Database user.

  • database_password (String) (defaults to: 'redmine')

    Database user password.

  • production_database (String) (defaults to: 'redmine')

    Name of database to use for production environment.

  • development_database (String) (defaults to: 'redmine_development')

    Name of database to use for development environment.

  • database_adapter (Optional[Enum['mysql','mysql2','postgresql']]) (defaults to: undef)

    Database adapter to use for database configuration. Can be either ‘mysql’ for ruby 1.8, ‘mysql2’ for ruby 1.9 or ‘postgresql’.

  • email_delivery_method (Enum['sendmail','smtp']) (defaults to: 'smtp')

    The method Redmine uses to deliver email.

  • smtp_server (Stdlib::Host) (defaults to: 'localhost')

    SMTP server to use.

  • smtp_domain (String) (defaults to: $facts['networking']['domain'])

    Domain to send emails from.

  • smtp_port (Stdlib::Port) (defaults to: 25)

    SMTP port to use.

  • smtp_authentication (Boolean) (defaults to: false)

    SMTP authentication mode.

  • smtp_username (Optional[String]) (defaults to: undef)

    SMTP user name for authentication.

  • smtp_password (Optional[String]) (defaults to: undef)

    SMTP password for authentication.

  • smtp_ssl (Boolean) (defaults to: false)

    Use SSL with SMTP.

  • webroot (Stdlib::Unixpath) (defaults to: "${apache::docroot}/redmine")

    Directory in which redmine web files will be installed. where DOCROOT is the document root of your apache server, usually /var/www or /var/www/html

  • install_dir (Stdlib::Unixpath) (defaults to: '/usr/src/redmine')

    Path where redmine will be installed

  • vhost_aliases (String) (defaults to: 'redmine')

    Server aliases to use in the vhost config.

  • vhost_servername (String) (defaults to: 'redmine')

    Server name to use in the vhost config..

  • override_options (Hash[String, String]) (defaults to: {})

    Extra options to add to configuration.yml.

  • plugins (Hash[String, String]) (defaults to: {})

    Optional hash of plugins, which are passed to redmine::plugin

  • www_subdir (Optional[String]) (defaults to: undef)

    Optional directory relative to the site webroot to install redmine in. Undef by default. Expects a path string without leading slash. When using this option the vhost config is your responsibility.

  • create_vhost (Boolean) (defaults to: true)

    Enable or disable vhost creation. When disabling this option the vhost config is your responsibility.

  • bundle (String)

    Name of the “bundle” executable to use to set up redmine. The default value depends on the operating system.

  • provider (Enum['wget','git','svn']) (defaults to: 'git')


73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# File 'manifests/init.pp', line 73

class redmine (
  String                   $bundle,
  String                   $version               = undef,
  Stdlib::HTTPUrl          $download_url          = 'https://github.com/redmine/redmine',
  String                   $database_server       = 'localhost',
  String                   $database_user         = 'redmine',
  String                   $database_password     = 'redmine',
  String                   $production_database   = 'redmine',
  String                   $development_database  = 'redmine_development',
  Optional[Enum['mysql','mysql2','postgresql']] $database_adapter = undef,
  Enum['sendmail','smtp']  $email_delivery_method = 'smtp',
  Stdlib::Host             $smtp_server           = 'localhost',
  String                   $smtp_domain           = $facts['networking']['domain'],
  Stdlib::Port             $smtp_port             = 25,
  Boolean                  $smtp_authentication   = false,
  Optional[String]         $smtp_username         = undef,
  Optional[String]         $smtp_password         = undef,
  Boolean                  $smtp_ssl              = false,
  String                   $vhost_aliases         = 'redmine',
  String                   $vhost_servername      = 'redmine',
  Stdlib::Unixpath         $webroot               = "${apache::docroot}/redmine",
  Stdlib::Unixpath         $install_dir           = '/usr/src/redmine',
  Enum['wget','git','svn'] $provider              = 'git',
  Hash[String, String]     $override_options      = {},
  Hash[String, String]     $plugins               = {},
  Optional[String]         $www_subdir            = undef,
  Boolean                  $create_vhost          = true,

) {
  class { 'redmine::params': }
  -> class { 'redmine::download': }
  -> class { 'redmine::config': }
  -> class { 'redmine::install': }
  -> class { 'redmine::database': }
  -> class { 'redmine::rake': }
}