-
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
remote_execution ssh_user management #483
Conversation
86bf8cc
to
d806a47
Compare
class foreman_proxy::plugin::remote_execution::ssh_user::params { | ||
|
||
if defined('$::remote_execution_create_user') { | ||
$remote_execution_create_user = str2bool($::remote_execution_create_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.
I think it makes more sense to name the variable manage_user
to have parity with the class parameter
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.
Fixed. All variables in params.pp
now match the class variable names.
d806a47
to
b036f9e
Compare
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.
I think I'd be good to check getvar, but I'd be ok adding this given how stand alone it is.
b036f9e
to
49f4d82
Compare
49f4d82
to
19d8157
Compare
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.
I do wonder if we need a comment in the params.pp file why getvar
is used instead of $facts
and $::var
. It'd be easy to break it when "cleaning up" old coding styles :)
Especially useful if you have... * Hosts that were built before you discovered/enabled remote execution * You rebuild your foreman proxy server and the ssh keys are regenerated
a0f24cc
to
bfdd42b
Compare
@ekohl Comment added to params.pp and spec test (where I'm slightly abusing All rebased, squashed, signed and ready to merge. :) |
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.
Thanks!
Especially useful if you have...