-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Format env.json as JSON format template
In JSON spec, a "true" with quotes is not a boolean but a string, there was a lot sed doing line replacement because we passed in the env.json as string instead of a file. However, ansible supports "-e @file" which allows to pass-in a JSON file, and this commit is to use that way. In details, it 1. format env.json to regular JSON format 2. put flag for sed replacement, and change line replacement in install.sh and uninstall.sh to do string replacement. 3. change to use 4 spaces as indentation in bash script 4. add -x for install and uninstall script Signed-off-by: Wei Tie <wtie@cisco.com>
- Loading branch information
Wei Tie
committed
Nov 1, 2017
1 parent
636f414
commit 27d1d9e
Showing
5 changed files
with
160 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
{ | ||
"docker_version":"__DOCKER_VERSION__", | ||
"aci_gw_image":"contiv/aci-gw:__ACI_GW_VERSION__", | ||
"contiv_network_version":"__CONTIV_VERSION__", | ||
"env": "{}", | ||
{ | ||
"docker_version": "__DOCKER_VERSION__", | ||
"aci_gw_image": "contiv/aci-gw:__ACI_GW_VERSION__", | ||
"contiv_network_version": "__CONTIV_VERSION__", | ||
"env": {}, | ||
"etcd_peers_group": "netplugin-master", | ||
"service_vip": "__NETMASTER_IP__", | ||
"validate_certs": "no", | ||
"validate_certs": false, | ||
"cluster_store": "__CLUSTER_STORE__", | ||
"auth_proxy_image": "contiv/auth_proxy:__API_PROXY_VERSION__", | ||
"docker_reset_container_state": "False", | ||
"docker_reset_image_state": "False", | ||
"etcd_cleanup_state": "False", | ||
"auth_proxy_local_install": "False", | ||
"contiv_network_local_install": "False", | ||
"vxlan_port": "4789", | ||
"docker_reset_container_state": __DOCKER_RESET_CONTAINER_STATE__, | ||
"docker_reset_image_state": __DOCKER_RESET_IMAGE_STATE__, | ||
"etcd_cleanup_state": __ETCD_CLEANUP_STATE__, | ||
"auth_proxy_local_install": __AUTH_PROXY_LOCAL_INSTALL__, | ||
"contiv_network_local_install": __CONTIV_NETWORK_LOCAL_INSTALL__, | ||
"vxlan_port": __VXLAN_PORT__, | ||
"netctl_url": "http://__NETMASTER_IP__:9999", | ||
"contiv_v2plugin_install": "False", | ||
"contiv_v2plugin_install": __CONTIV_V2PLUGIN_INSTALL__, | ||
"contiv_v2plugin_image": "contiv/v2plugin:__CONTIV_V2PLUGIN_VERSION__" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.