Puppet Class: profile::conftool::master
- Defined in:
- modules/profile/manifests/conftool/master.pp
Overview
SPDX-License-Identifier: Apache-2.0
Class profile::conftool::master
Class to configure a conftool master, that will be able to sync data from yaml files in $sync_dir
- parameters
-
sync_dir The directory to sync from in conftool-merge
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'modules/profile/manifests/conftool/master.pp', line 10
class profile::conftool::master(
Stdlib::Unixpath $sync_dir = lookup('profile::conftool::master::sync_dir'),
Stdlib::Unixpath $git_dir = lookup('profile::conftool::master::git_dir', {'default_value' => '/var/lib/git'}),
) {
# All the configuration we have for the client is needed by the master
require ::profile::conftool::client
file { '/etc/conftool/data':
ensure => link,
target => "${git_dir}/operations/puppet/conftool-data",
force => true,
before => File['/usr/local/bin/conftool-merge'],
}
file { '/usr/local/bin/conftool-merge':
ensure => present,
owner => 'root',
group => 'root',
mode => '0500',
content => template('conftool/conftool-merge.erb'),
}
# Note: we do not include etcd's own auth defines as we are discouraging using it
# in favour of proxying via nginx. This might change when/if we switch to etcd 3
}
|