# 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 } }