-
Notifications
You must be signed in to change notification settings - Fork 229
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
Move certname configuration to [main] #680
Comments
I would suggest doing this: diff --git a/manifests/agent/config.pp b/manifests/agent/config.pp
index f9b12d2..a25a3e5 100644
--- a/manifests/agent/config.pp
+++ b/manifests/agent/config.pp
@@ -32,7 +32,7 @@ class puppet::agent::config inherits puppet::config {
}
}
if $::puppet::client_certname {
- puppet::config::agent {
+ puppet::config::main {
'certname': value => $::puppet::client_certname;
}
} If you're ok with it, I'm happy to provide a PR. |
While I agree putting it in main makes more sense, I would say doing this in |
Ha, yeah that makes more sense! :) Are you ok with keeping the name $client_certname and moving the option into |
I did think about that and there's no better name IMHO since |
This is needed to ensure all Puppet subcommands can properly use it. Fixes #theforemanGH-680.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
This is more of an Puppet problem, but I think we should solve it in this modules so other do not stumble over it...
Conclusion: Puppet doesn't properly resolve the configured values which might lead to errors with config parameters depending on others.
The easiest solution seems to be putting
certname
in[main]
. This is also what the documentation shows as examples --> https://puppet.com/docs/puppet/5.4/config_file_main.htmlWhat are you seeing
See above.
What behaviour did you expect instead
Puppet would correctly determine the value of config parameters depending on $certname
Output log
Any additional information you'd like to impart
The text was updated successfully, but these errors were encountered: