Puppet Class: taiga::back

Defined in:
manifests/back.pp

Summary

Install Taiga back

Overview

Parameters:

  • front_hostname (String[1])

    Hostname used to reach the frontend.

  • front_protocol (Enum['http', 'https'])

    Protocol used to reach the frontend.

  • back_hostname (String[1])

    Hostname used to reach the backend.

  • back_protocol (Enum['http', 'https'])

    Protocol used to reach the backend.

  • secret_key (String[1])

    A secret key passed to the ‘SECRET_KEY` setting in taiga-back configuration. (A 60 characters random string should be a good start).

  • db_password (String[1])

    Sets the database password. It is currently not used but still has to be provided.

  • dependencies (Array[String[1]])

    Extra depepdencies.

  • db_name (String[1]) (defaults to: 'taiga')

    Name of the database.

  • db_user (String[1]) (defaults to: 'taiga')

    User of the database.

  • user (String[1]) (defaults to: 'taiga')

    Name of the user running the backend daemon.

  • repo_ensure (Enum['present', 'latest']) (defaults to: 'present')

    Ensure value for Taiga’s vcs repository.

  • repo_revision (String[1]) (defaults to: 'stable')

    Revision for Taiga’s vcs repository.

  • install_dir (Stdlib::Absolutepath) (defaults to: '/srv/www/taiga-back')

    Directory where is installed the backend of Taiga.

  • venv_dir (Stdlib::Absolutepath) (defaults to: '/srv/www/taiga-venv')

    Directory where is installed Taiga pyhton dependencies.

  • admins (Array[Taiga::Admin]) (defaults to: [])

    Administrators to notify of Taiga exceptions.

  • public_register_enabled (Boolean) (defaults to: true)

    Enable anyone to register on this instance.

  • ldap_enable (Boolean) (defaults to: false)

    Enable the LDAP client.

  • ldap_server (Optional[String[1]]) (defaults to: undef)

    LDAP server.

  • ldap_port (Integer) (defaults to: 389)

    LDAP port.

  • ldap_bind_dn (Optional[String[1]]) (defaults to: undef)

    DN to use for LDAP authentication.

  • ldap_bind_password (Optional[String[1]]) (defaults to: undef)

    Password to use for LDAP authentication.

  • ldap_search_base (String[1]) (defaults to: 'ou=people,dc=example,dc=com')

    Search base for users.

  • ldap_search_property (String[1]) (defaults to: 'uid')

    Property holding users login.

  • ldap_search_suffix (Optional[String[1]]) (defaults to: undef)
  • ldap_email_property (String[1]) (defaults to: 'mail')

    Property holding users e-mail.

  • ldap_full_name_property (String[1]) (defaults to: 'cn')

    Property holding users full name.

  • email_use_tls (Boolean) (defaults to: false)

    Use TLS to connect to the mail server.

  • email_host (String[1]) (defaults to: 'localhost')

    Hostname of the mail server.

  • email_port (Integer) (defaults to: 25)

    Port of the mail server.

  • email_user (Optional[String[1]]) (defaults to: undef)

    Username to authenticate on the mail server.

  • email_password (Optional[String[1]]) (defaults to: undef)

    Password to authenticate on the mail server.

  • change_notification_min_interval (Optional[Integer]) (defaults to: undef)

    Interval for sending change notifications.

  • default_project_slug_prefix (Optional[Boolean]) (defaults to: undef)

    Add username to project slug



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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
109
110
111
112
113
# File 'manifests/back.pp', line 36

class taiga::back (
  String[1]                  $front_hostname,
  Enum['http', 'https']      $front_protocol,
  String[1]                  $back_hostname,
  Enum['http', 'https']      $back_protocol,
  String[1]                  $secret_key,
  String[1]                  $db_password,
  Array[String[1]]           $dependencies,
  String[1]                  $db_name = 'taiga',
  String[1]                  $db_user = 'taiga',
  String[1]                  $user = 'taiga',
  Enum['present', 'latest']  $repo_ensure = 'present',
  String[1]                  $repo_revision = 'stable',
  Stdlib::Absolutepath       $install_dir = '/srv/www/taiga-back',
  Stdlib::Absolutepath       $venv_dir = '/srv/www/taiga-venv',
  Array[Taiga::Admin]        $admins = [],
  Boolean                    $public_register_enabled = true,
  Boolean                    $ldap_enable = false,
  Optional[String[1]]        $ldap_server = undef,
  Integer                    $ldap_port = 389,
  Optional[String[1]]        $ldap_bind_dn = undef,
  Optional[String[1]]        $ldap_bind_password = undef,
  String[1]                  $ldap_search_base = 'ou=people,dc=example,dc=com',
  String[1]                  $ldap_search_property = 'uid',
  Optional[String[1]]        $ldap_search_suffix = undef,
  String[1]                  $ldap_email_property = 'mail',
  String[1]                  $ldap_full_name_property = 'cn',
  Boolean                    $email_use_tls = false,
  String[1]                  $email_host = 'localhost',
  Integer                    $email_port = 25,
  Optional[String[1]]        $email_user = undef,
  Optional[String[1]]        $email_password = undef,
  Optional[Integer]          $change_notification_min_interval = undef,
  Optional[Boolean]          $default_project_slug_prefix = undef,
) {
  contain taiga::back::user
  contain taiga::back::dependencies
  contain taiga::back::repo
  contain taiga::back::install
  contain taiga::back::config
  contain taiga::back::cron
  contain taiga::back::database
  contain taiga::back::migrate
  contain taiga::back::seed

  Class['Taiga::Back::User']
  -> Class['Taiga::Back::Dependencies']
  -> Class['Taiga::Back::Repo']
  -> Class['Taiga::Back::Install']
  -> Class['Taiga::Back::Config']
  -> Class['Taiga::Back::Cron']
  -> Class['Taiga::Back::Database']
  -> Class['Taiga::Back::Migrate']
  -> Class['Taiga::Back::Seed']

  Class['Taiga::Back::Repo']
  ~> Class['Taiga::Back::Install']

  Class['Taiga::Back::Repo']
  ~> Class['Taiga::Back::Migrate']

  Class['Taiga::Back::Database']
  ~> Class['Taiga::Back::Migrate']
  ~> Class['Taiga::Back::Seed']

  if $ldap_enable {
    contain taiga::back::ldap

    Class['Taiga::Back::Install']
    ~> Class['Taiga::Back::Ldap']
  }

  Class['Taiga::Back::Config']
  ~> Class['Apache::Service']

  Class['Taiga::Back::Install']
  ~> Class['Apache::Service']
}