summaryrefslogtreecommitdiffstats
path: root/modules/tozt/manifests/metabase.pp
blob: fac88a9df1f19cc227453abe73aba558a6acf243 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class tozt::metabase {
  include tozt::certbot
  include tozt::persistent
  include metabase

  secret { "/media/persistent/metabase.htpasswd":
    source => "metabase",
    owner => 'http',
    require => [
      Class["tozt::persistent"],
      Package['nginx'],
    ];
  }

  nginx::site {
    "metabase-tls":
      source => 'puppet:///modules/tozt/nginx/metabase-tls.conf',
      require => Class['certbot'];
    "metabase":
      source => 'puppet:///modules/tozt/nginx/metabase.conf';
  }
}