-
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
Update to voxpupuli-test 5 #841
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
aab151b
Avoid using global variables
ekohl 4118be9
Use Stdlib::Port where applicable
ekohl c45bdb9
puppet-lint autofix with voxpupuli-test 5
ekohl a1c47a5
Make puppet-lint parameter_types pass
ekohl d1e6b34
Update to voxpupuli-test 5
ekohl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
hour => $_hour, | ||
minute => $_minute, | ||
} | ||
} else{ | ||
} else { | ||
cron { 'puppet': | ||
ensure => absent, | ||
} | ||
|
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
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,7 +1,6 @@ | ||
# Default parameters | ||
# @api private | ||
class puppet::params { | ||
|
||
# Basic config | ||
$version = 'present' | ||
$manage_user = true | ||
|
@@ -34,19 +33,15 @@ | |
$dns_alt_names = [] | ||
$use_srv_records = false | ||
|
||
if defined('$::domain') { | ||
$srv_domain = $facts['networking']['domain'] | ||
} else { | ||
$srv_domain = undef | ||
} | ||
$srv_domain = fact('networking.domain') | ||
|
||
# lint:ignore:puppet_url_without_modules | ||
$pluginsource = 'puppet:///plugins' | ||
$pluginfactsource = 'puppet:///pluginfacts' | ||
# lint:endignore | ||
$classfile = '$statedir/classes.txt' | ||
$syslogfacility = undef | ||
$environment = $::environment | ||
$environment = $server_facts['environment'] | ||
|
||
# aio_agent_version is a core fact that's empty on non-AIO | ||
$aio_package = fact('aio_agent_version') =~ String[1] | ||
|
@@ -199,13 +194,10 @@ | |
|
||
# Will this host be a puppet agent ? | ||
$agent = true | ||
$client_certname = $::clientcert | ||
$client_certname = $trusted['certname'] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is also present when using |
||
|
||
if defined('$::puppetmaster') { | ||
$puppetmaster = $::puppetmaster | ||
} else { | ||
$puppetmaster = undef | ||
} | ||
# Set by the Foreman ENC | ||
$puppetmaster = getvar('puppetmaster') | ||
|
||
# Hashes containing additional settings | ||
$additional_settings = {} | ||
|
@@ -220,7 +212,7 @@ | |
$server_external_nodes = "${dir}/node.rb" | ||
$server_trusted_external_command = undef | ||
$server_request_timeout = 60 | ||
$server_certname = $::clientcert | ||
$server_certname = $trusted['certname'] | ||
$server_strict_variables = false | ||
$server_http = false | ||
$server_http_port = 8139 | ||
|
@@ -262,7 +254,7 @@ | |
|
||
$server_storeconfigs = false | ||
|
||
$puppet_major = regsubst($::puppetversion, '^(\d+)\..*$', '\1') | ||
$puppet_major = regsubst($facts['puppetversion'], '^(\d+)\..*$', '\1') | ||
|
||
if ($facts['os']['family'] =~ /(FreeBSD|DragonFly)/) { | ||
$server_package = "puppetserver${puppet_major}" | ||
|
@@ -377,8 +369,8 @@ | |
$server_connect_timeout = 120000 | ||
$server_ca_auth_required = true | ||
$server_ca_client_self_delete = false | ||
$server_admin_api_whitelist = [ 'localhost', $lower_fqdn ] | ||
$server_ca_client_whitelist = [ 'localhost', $lower_fqdn ] | ||
$server_admin_api_whitelist = ['localhost', $lower_fqdn] | ||
$server_ca_client_whitelist = ['localhost', $lower_fqdn] | ||
$server_cipher_suites = [ | ||
'TLS_DHE_RSA_WITH_AES_128_GCM_SHA256', | ||
'TLS_DHE_RSA_WITH_AES_256_GCM_SHA384', | ||
|
@@ -387,7 +379,7 @@ | |
'TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256', | ||
'TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384', | ||
] | ||
$server_ssl_protocols = [ 'TLSv1.2' ] | ||
$server_ssl_protocols = ['TLSv1.2'] | ||
$server_ssl_chain_filepath = undef | ||
$server_check_for_updates = true | ||
$server_environment_class_cache_enabled = false | ||
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
While https://www.puppet.com/docs/puppet/7/lang_facts_builtin_variables.html#lang_facts_builtin_variables-server-facts doesn't mention it,
$server_facts['environment']
is present when usingpuppet apply
.