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 remaining Puppet data types #357

Merged
merged 1 commit into from
Nov 10, 2017
Merged

Add remaining Puppet data types #357

merged 1 commit into from
Nov 10, 2017

Conversation

wyardley
Copy link
Contributor

@wyardley wyardley commented Nov 9, 2017

No description provided.

@wyardley wyardley added the enhancement New feature or request label Nov 9, 2017
$file_keystorage_dir = $rundeck::file_keystorage_dir,
$group = $rundeck::config::group,
$user = $rundeck::config::user,
String $path,
Copy link
Member

Choose a reason for hiding this comment

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

Stdlib::Absolutepath ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@juniorsysadmin do you know what this is used for?

The docs say:

# [*path*]
#   The actual value (password) of the named key

But then the code has:

  $key_fqpath = "${file_keystorage_dir}/content/keys/${path}"

This seems like in either case, maybe it's not supposed to be a full path?

Copy link
Contributor Author

@wyardley wyardley Nov 9, 2017

Choose a reason for hiding this comment

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

https://github.com/voxpupuli/puppet-rundeck/blob/master/manifests/config/resource_source.pp#L79 is the one that's driving me a little more crazy. I don't think it can be made undef as it is here, except maybe by using a selector. Maybe we could make it some kind of variant of an empty string or Stdlib::HTTPUrl?

There are a few other empty strings that I'm not sure can be switched to undefs.

Copy link
Member

@juniorsysadmin juniorsysadmin Nov 10, 2017

Choose a reason for hiding this comment

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

do you know what this is used for?

Absolutely no idea, sorry.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looking at my existing Rundeck install, I think this is the username (not password) of the key? That is, there's a directory like /var/lib/rundeck/var/storage/content/keys with a directory for each username. In the case of ec2 credentials, it's like rundeck/ec2/{rundeck_access_key_id,rundeck_secret_access_key} (where the username is rundeck).

@juniorsysadmin
Copy link
Member

Perhaps just do loose datatypes in this PR first, then cleanup the code and use more restrictive datatypes in another PR.

@wyardley wyardley merged commit 5d31e83 into voxpupuli:master Nov 10, 2017
@wyardley wyardley deleted the data_types2 branch November 10, 2017 00:06
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.

2 participants