change name of config var to align with opencord
diff --git a/build.gradle b/build.gradle
index 8a32e71..19a3a5a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -171,20 +171,20 @@
def config = yaml.load(configFile.newReader())
executable = "ansible-playbook"
- args = ["-i", config.seedNode.ip + ',']
+ args = ["-i", config.seedServer.ip + ',']
- if ( config.seedNode.user != null && config.seedNode.user != "" ) {
- args = args << "--user=$config.seedNode.user"
+ if ( config.seedServer.user != null && config.seedServer.user != "" ) {
+ args = args << "--user=$config.seedServer.user"
}
def extraVars = []
- if (config.seedNode) {
- extraVars = extraVars.p(config.seedNode.extraVars)
- .p(config.seedNode.password, "ansible_ssh_pass")
- .p(config.seedNode.sudoPassword, "ansible_sudo_pass")
- .p(config.seedNode.fabric_ip, "fabric_ip")
- .p(config.seedNode.management_ip, "management_ip")
- .p(config.seedNode.external_ip, "external_ip")
+ if (config.seedServer) {
+ extraVars = extraVars.p(config.seedServer.extraVars)
+ .p(config.seedServer.password, "ansible_ssh_pass")
+ .p(config.seedServer.sudoPassword, "ansible_sudo_pass")
+ .p(config.seedServer.fabric_ip, "fabric_ip")
+ .p(config.seedServer.management_ip, "management_ip")
+ .p(config.seedServer.external_ip, "external_ip")
}
if (config.otherServers) {
@@ -193,7 +193,7 @@
.p(config.otherServers.role, "prov_role")
}
- def skipTags = [].p(config.seedNode.skipTags)
+ def skipTags = [].p(config.seedServer.skipTags)
args = args.p(skipTags.asParam("skip-tags", ",")).p(extraVars.asParam("extra-vars", " ")) << "head-node.yml"
println args
diff --git a/config/default.yml b/config/default.yml
index 78220ef..349a42e 100644
--- a/config/default.yml
+++ b/config/default.yml
@@ -3,7 +3,7 @@
# This deployment configuration can be utilized with the head node created
# via `vargrant up headnode` from the gerrit.opencord.org/maas repository.
---
-seedNode:
+seedServer:
ip: '10.100.198.202'
# User name and password used by Ansible to connect to the host for remote
diff --git a/config/pod5.yml b/config/pod5.yml
index a380b44..c54f9c4 100644
--- a/config/pod5.yml
+++ b/config/pod5.yml
@@ -1,6 +1,6 @@
# Deployment configuration for a phyical hardware POD
---
-seedNode:
+seedServer:
ip: '47.135.132.21'
# User name and password used by Ansible to connect to the host for remote
# provisioning