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

remote_execution ssh_user management #483

Merged
merged 1 commit into from
Mar 6, 2019

Conversation

alexjfisher
Copy link
Contributor

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

README.md Outdated Show resolved Hide resolved
manifests/plugin/remote_execution/ssh_user/params.pp Outdated Show resolved Hide resolved
class foreman_proxy::plugin::remote_execution::ssh_user::params {

if defined('$::remote_execution_create_user') {
$remote_execution_create_user = str2bool($::remote_execution_create_user)
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Member

@ekohl ekohl left a 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.

manifests/plugin/remote_execution/ssh_user.pp Outdated Show resolved Hide resolved
Copy link
Member

@ekohl ekohl left a 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
@alexjfisher
Copy link
Contributor Author

@ekohl Comment added to params.pp and spec test (where I'm slightly abusing let :facts).

All rebased, squashed, signed and ready to merge. :)

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

Thanks!

@ekohl ekohl merged commit bfdd42b into theforeman:master Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants