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 optional key-values that will be outputted to JSON in config #117

Merged
merged 1 commit into from
Jul 13, 2016

Conversation

kotakanbe
Copy link
Member

@kotakanbe kotakanbe commented Jul 1, 2016

Optional key-value will be outputted to JSON.

The key-value in the default section will be overwritten by servers section's key-value.
For instance, you can use this option for Azure ResourceGroup name, Azure VM Name and so on

  • config.toml
[default]
optional = [
    ["key1", "default_value"],
    ["key3", "val3"],
]

[servers.bsd]
host     = "192.168.11.11"
user     = "kanbe"
optional = [
    ["key1", "val1"],
    ["key2", "val2"],
]
  • all.json
[
  {
    "ServerName": "bsd",
    "Family": "FreeBSD",
    "Release": "10.3-RELEASE",
    .... snip ...
    "Optional": [
      [  "key1", "val1" ],
      [  "key2", "val2" ],
      [  "key3", "val3" ]
    ]
  }
]
  • FIx Source
  • FIx README

@kotakanbe kotakanbe changed the title Add optional key-values that will be outputted to JSON in config [WIP]Add optional key-values that will be outputted to JSON in config Jul 1, 2016
@kotakanbe kotakanbe force-pushed the optional_key_value branch 2 times, most recently from 98f3a8a to cd81c68 Compare July 13, 2016 03:25
@kotakanbe kotakanbe force-pushed the optional_key_value branch from cd81c68 to c285f9f Compare July 13, 2016 03:38
@kotakanbe kotakanbe merged commit 5aeeb4e into master Jul 13, 2016
@kotakanbe kotakanbe changed the title [WIP]Add optional key-values that will be outputted to JSON in config Add optional key-values that will be outputted to JSON in config Jul 13, 2016
@kotakanbe kotakanbe deleted the optional_key_value branch July 13, 2016 03:40
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.

1 participant