Puppet Class: profile::puppetserver::configmaster
- Defined in:
- modules/profile/manifests/puppetserver/configmaster.pp
Overview
SPDX-License-Identifier: Apache-2.0 Create a simple TLS proxy and webserver to expose the canonical SHA1 values for puppet and labs-puppet that config-master will use.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'modules/profile/manifests/puppetserver/configmaster.pp', line 4
class profile::puppetserver::configmaster (
Stdlib::Unixpath $document_root = lookup('profile::puppetserver::configmaster::document_root', { 'default_value' => '/srv/config-master'}),
String $server_name = lookup('profile::puppetserver::configmaster::server_name'),
) {
include profile::tlsproxy::envoy
include profile::httpd
# Note: the mode is 755 since the SHA1 files generated by
# puppet-merge.py will need to be written when running the script.
file { $document_root:
ensure => directory,
owner => 'gitpuppet',
mode => '0755',
}
httpd::site { 'config-master':
ensure => present,
priority => 50,
content => template('profile/puppetserver/configmaster/config-master.conf.erb'),
}
}
|