-
Notifications
You must be signed in to change notification settings - Fork 66
(PUP-9747) update bolt transport key description #142
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
Conversation
* Emphasise source of design constraint * Emphasise recommendation to use these keys when applicable * Add `password` key following feedback from the bolt team * Add note on bolt behaviour of `uri` vs `name`
0bcd36c
to
e362d8b
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 made a few minor edits.
Bolt always provides all computed connection info attributes to tasks, instead of only the ones the user provided. Therefore we can't be strict when validating the passed in arguments. To limit the impact to bolt users, this change makes the relaxed validation trigger only when a `'remote-transport'` key is specified, as that is always provided by bolt. This also contains the docs changes from puppetlabs/puppet-specifications#142
Bolt always provides all computed connection info attributes to tasks, instead of only the ones the user provided. Therefore we can't be strict when validating the passed in arguments. To limit the impact to bolt users, this change makes the relaxed validation trigger only when a `'remote-transport'` key is specified, as that is always provided by bolt. This also contains the docs changes from puppetlabs/puppet-specifications#142
language/resource-api/README.md
Outdated
* `remote-*`: any key starting with `remote-` is reserved for future use. | ||
* `implementations`: reserved by Bolt. | ||
* `remote-transport`: determines which transport to load. It is always the transport class named "declassified". |
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.
It is always the transport class named "declassified".
The sentence doesn't make sense to me. It reads like remote-transport: declassified
.
Should it be: It is always the transport class name "declassified".`
If so, I believe it may make more sense to be written as:
It is always the transport class name written in lowercase. e.g. class Panos
becomes panos
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.
It should always be the transport name
. The class name for the transport is the snake case (SnakeCase
) version of the transport name.
good spot, @da-ar
password
key following feedback from the bolt team