-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
Add support for proxy settings #487
Conversation
manifests/params.pp
Outdated
@@ -9,6 +9,7 @@ | |||
$install_options = [] | |||
$sources = undef | |||
$puppet_master = true | |||
$proxy = '' |
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.
please default to undef and not empty string
manifests/config.pp
Outdated
@@ -62,6 +65,7 @@ | |||
$root_user = $r10k::params::root_user, | |||
$root_group = $r10k::params::root_group, | |||
Stdlib::Absolutepath $puppetconf_path = $r10k::params::puppetconf_path, | |||
String $proxy = $r10k::params::proxy, |
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.
String $proxy = $r10k::params::proxy, | |
Optional[String[1]] $proxy = $r10k::params::proxy, |
@@ -21,6 +21,9 @@ | |||
# Location of symlink that points to configfile. Default: /etc/r10k.yaml | |||
# * [*forge_settings*] | |||
# Hash containing settings for downloading modules from the Puppet Forge. | |||
# * [*proxy*] | |||
# String containing proxy setting for r10k.yaml. | |||
# Default: '' |
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.
params.pp
says it defaults to undef
.
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.
It does not matter. I will create another pull request, which will refactor a lot of stuff and hopefully we will use data-in-modules and generate a REFERENCE.md.
@@ -21,6 +21,7 @@ | |||
Hash $forge_settings = $r10k::params::forge_settings, | |||
Hash $deploy_settings = $r10k::params::deploy_settings, | |||
$root_user = $r10k::params::root_user, | |||
Optional[String[1]] $proxy = $r10k::params::proxy, |
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.
Stdlib::HTTPUrl
instead of String[1]
?
This closes #473. @Rudikza Thank you very much for this enhancement.