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 smart_proxy_chef plugin support #150

Closed
wants to merge 0 commits into from
Closed

Conversation

ares
Copy link
Member

@ares ares commented Feb 13, 2015

No description provided.


foreman_proxy::plugin {'chef':
} ->
file {'/etc/foreman-proxy/settings.d/chef.yml':
Copy link
Member

Choose a reason for hiding this comment

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

Please use foreman_proxy::settings_file.

@ekohl
Copy link
Member

ekohl commented Feb 13, 2015

Could you write a (minimal) test case for it?

class foreman_proxy::plugin::chef::params {
$enabled = true
$group = undef
$server_url = "https://${fqdn}"
Copy link
Member

Choose a reason for hiding this comment

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

This should be ${::fqdn}.

@ares ares force-pushed the master branch 2 times, most recently from a41b8e4 to ed34e29 Compare February 16, 2015 20:46
@ares
Copy link
Member Author

ares commented Feb 16, 2015

@ekohl thanks for review, I fixed it and added test to check basic functionality

$ssl_verify = $::foreman_proxy::plugin::chef::params::ssl_verify,
$ssl_pem_file = $::foreman_proxy::plugin::chef::params::ssl_pem_file,
) inherits foreman_proxy::plugin::chef::params {
$group_real = pick($group, $::foreman_proxy::user)
Copy link
Member

Choose a reason for hiding this comment

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

You can leave this out (and the validate_string) since the settings file defaults to the correct value and you already have undef in params.pp.

@ekohl
Copy link
Member

ekohl commented Feb 17, 2015

Minor nitpick, otherwise ok.

@ares ares closed this Feb 17, 2015
ehelms pushed a commit to ehelms/puppet-foreman_proxy that referenced this pull request Aug 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants