git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/site/profile/manifests/gitlab.pp
blob: f4b5bfeb419ea22099e93b6f29b5419103ac4b77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class profile::gitlab {

  file { "/etc/gitlab/ssl/${fqdn}.key" :
    ensure => file,
    source => "${settings::privatekeydir}/${trusted['certname']}.pem",
    notify => Exec['gitlab_reconfigure'],
  }

  file { "/etc/gitlab/ssl/${fqdn}.crt" :
    ensure => file,
    source => "${settings::certdir}/${trusted['certname']}.pem",
    notify => Exec['gitlab_reconfigure'],
  }

  class { 'gitlab':
    external_url => hiera( 'gms_server_url', "https://${::fqdn}") ,
    require => File["/etc/gitlab/ssl/${fqdn}.key", "/etc/gitlab/ssl/${fqdn}.key"],
  }

}