summaryrefslogtreecommitdiff
path: root/manifests/repomaster.pp
blob: 671b16f4cd963d38dffcb24a8785e7f6e103a8ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Configures web server for serving package repo.
class profiles::repomaster (
  String $directory,
  String $hostname = "repo.${::fqdn}",
) {

  include ::nginx

  nginx::resource::server { $hostname:
    www_root             => $directory,
    autoindex            => 'on',
    use_default_location => true,
    ipv6_enable          => true,
    ipv6_listen_options  => '',
    listen_options       => '',
    # TODO ssl
  }

}