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 environment attribute set/unset #222

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jeunito
Copy link
Contributor

@jeunito jeunito commented May 24, 2018

Sets/Unsets the value of a key in multiple environments in one call. Nested attributes are separated by a :

environment attribute set

$ knife spork environment attribute set dev hello:world chef
Modifying environment1
Done modifying environment1 at 2018-05-23 17:33:46 -0700
Modifying environment2
Done modifying environment2 at 2018-05-23 17:33:47 -0700

This creates the following in default_attributes section of the environment1 and environment2 json files:

"hello" : {
  "world": "chef"
}

environment attribute unset

knife spork environment attribute unset does the opposite:

$ knife spork environment attribute unset dev hello
Modifying environment1
Done modifying environment1 at 2018-05-29 17:30:21 -0700
Modifying environment2
Done modifying environment2 at 2018-05-29 17:30:23 -0700

@jeunito jeunito changed the title Add environment attribute set Add environment attribute set/unset May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant