Skip to content
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

Merged
merged 1 commit into from
May 10, 2019
Merged

Add support for proxy settings #487

merged 1 commit into from
May 10, 2019

Conversation

dhoppe
Copy link
Member

@dhoppe dhoppe commented May 9, 2019

This closes #473. @Rudikza Thank you very much for this enhancement.

@dhoppe dhoppe added the enhancement New feature or request label May 9, 2019
@dhoppe dhoppe requested a review from bastelfreak May 9, 2019 21:38
@@ -9,6 +9,7 @@
$install_options = []
$sources = undef
$puppet_master = true
$proxy = ''
Copy link
Member

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

@@ -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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
String $proxy = $r10k::params::proxy,
Optional[String[1]] $proxy = $r10k::params::proxy,

@bastelfreak bastelfreak merged commit c36a64e into voxpupuli:master May 10, 2019
@@ -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: ''
Copy link
Member

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.

Copy link
Member Author

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,
Copy link
Member

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]?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants