Puppet Class: taiga::front::config

Defined in:
manifests/front/config.pp

Summary

Manage Taiga front config

Overview



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'manifests/front/config.pp', line 4

class taiga::front::config {
  assert_private()

  $login_form_type = $taiga::front::ldap_enable ? {
    true    => 'ldap',
    default => undef,
  }

  $ws_protocol = $taiga::front::back_protocol ? {
    'http'  => 'ws',
    'https' => 'wss',
  }

  file { "${taiga::front::install_dir}/dist/conf.json":
    ensure  => file,
    owner   => $taiga::front::user,
    mode    => '0644',
    content => epp('taiga/front/conf.json'),
  }
}