-
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
Allow to set node_terminus variable #921
base: master
Are you sure you want to change the base?
Conversation
9422ede
to
d5ca407
Compare
Allow to override default value of [server]/node_terminus in puppet.conf Useful in case of standalone (non-Foreman) Puppet Server installs without an ENC. Tests are updated as now without Foreman, node terminus is explicitly set to the default 'plain' value Reference https://www.puppet.com/docs/puppet/8/configuration.html#node-terminus
d5ca407
to
87a6f6d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test failures look related.
} | ||
else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: we put them on the same line
} | |
else { | |
} else { |
@@ -33,14 +33,21 @@ | |||
## General configuration | |||
$ca_server = $puppet::ca_server | |||
$ca_port = $puppet::ca_port | |||
$server_node_terminus = $puppet::server::node_terminus | |||
$server_external_nodes = $puppet::server::external_nodes | |||
$server_environment_timeout = $puppet::server::environment_timeout | |||
$trusted_external_command = $puppet::server::trusted_external_command | |||
$primary_envs_dir = $puppet::server::envs_dir[0] | |||
|
|||
if $server_external_nodes and $server_external_nodes != '' { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should look at $server_node_terminus
and only when it's set to exec
this should we include the ENC. So perhaps:
if $server_node_terminus == 'exec' {
class { 'puppet::server::enc':
node_terminus => $server_node_terminus,
enc_path => $server_external_nodes,
}
}
Ideally we would change $server_external_nodes
to Optional[Stdlib::Absolutepath]
then and drop empty string handling. That could be considered a breaking change, but I think it's for the better.
I haven't look at all at the consequences of this so there's a good chance I'm missing something.
Allow to override default value of [server]/node_terminus in puppet.conf.
Useful in case of standalone (non-Foreman) Puppet Server installs without an ENC.