-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: node_terminus variable for server
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.
- Loading branch information
Showing
6 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
# Set up the ENC config | ||
# @api private | ||
class puppet::server::enc ( | ||
Variant[Undef, String[0], Stdlib::Absolutepath] $enc_path = $puppet::server::external_nodes | ||
Variant[Undef, String[0], Stdlib::Absolutepath] $enc_path = $puppet::server::external_nodes, | ||
Enum['plain', 'exec', 'classifier'] $node_terminus = $puppet::server::node_terminus, | ||
) { | ||
puppet::config::server { | ||
'external_nodes': value => $enc_path; | ||
'node_terminus': value => 'exec'; | ||
if $enc_path and $enc_path != '' { | ||
puppet::config::server { | ||
'external_nodes': value => $enc_path; | ||
'node_terminus': value => $node_terminus; | ||
} | ||
} | ||
else { | ||
puppet::config::server { | ||
'node_terminus': value => $node_terminus; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters