Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CONFIG setting in /etc/default/puppetserver isn't managed #809

Open
unixsurfer opened this issue Oct 1, 2021 · 0 comments
Open

CONFIG setting in /etc/default/puppetserver isn't managed #809

unixsurfer opened this issue Oct 1, 2021 · 0 comments

Comments

@unixsurfer
Copy link

The default value for CONFIG in /etc/default/puppetserver is /etc/puppetlabs/puppetserver/conf.d.

In my setup we point server_puppetserver_dir to another directory(/mnt/data/puppetlabs/puppetserver) but the module doesn't set the value of CONFIG in /etc/default/puppetserver fie and as a result the puppetserver process fails to start correctly.

A possible fix in manifests/server/puppetserver.pp is the following:

    $confd_path = "${server_puppetserver_dir}/conf.d"
    augeas { 'puppet::server::puppetserver::config':
      lens    => 'Shellvars.lns',
      incl    => $config,
      context => "/files${config}",
      changes => "set CONFIG '\"${confd_path}\"'",
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant