-
Notifications
You must be signed in to change notification settings - Fork 130
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
Conversation
|
||
foreman_proxy::plugin {'chef': | ||
} -> | ||
file {'/etc/foreman-proxy/settings.d/chef.yml': |
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 use foreman_proxy::settings_file
.
Could you write a (minimal) test case for it? |
class foreman_proxy::plugin::chef::params { | ||
$enabled = true | ||
$group = undef | ||
$server_url = "https://${fqdn}" |
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.
This should be ${::fqdn}
.
a41b8e4
to
ed34e29
Compare
@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) |
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.
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.
Minor nitpick, otherwise ok. |
Add foreman-tasks to PR scanner
No description provided.