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

(FM-8178) Make params passable using provision.yaml #137

Merged
merged 1 commit into from
Jun 18, 2019
Merged

(FM-8178) Make params passable using provision.yaml #137

merged 1 commit into from
Jun 18, 2019

Conversation

michaeltlombardi
Copy link
Contributor

Prior to this commit the only way to pass additional provisioning params
to a provisioning task was via environment variables. This commit adds
an optional params hash to the provision.yaml definition, enabling a
user to pass an arbitrary set of keys to the provisioner.

These are transformed into environment variables as LITMUS_param where
the param is upcased. This will enable users of the vagrant provisioner
on windows to pass SMB username and passwords via the provision file
instead of typing them into the terminal.

The environment variables created during the run do not persist outside
of the ruby runspace.

Copy link
Contributor

@tphoney tphoney left a comment

Choose a reason for hiding this comment

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

@michaeltlombardi ++ for the functionality.
it needs rubocop-ified.
and we do need to document this somewhere . though this is not the time for it. yet.

Prior to this commit the only way to pass additional provisioning params
to a provisioning task was via environment variables. This commit adds
an optional params hash to the provision.yaml definition, enabling a
user to pass an arbitrary set of keys to the provisioner.

These are transformed into environment variables as `LITMUS_param` where
the `param` is upcased. This will enable users of the vagrant provisioner
on windows to pass SMB username and passwords via the provision file
instead of typing them into the terminal.

The environment variables created during the run do not persist outside
of the ruby runspace.
@tphoney tphoney merged commit 893b189 into puppetlabs:master Jun 18, 2019
@michaeltlombardi michaeltlombardi deleted the ticket/master/FM-8178-params-via-provision-list branch June 25, 2019 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants