CORD-714
Update ansible playbook names
add cord_profile flavor config
add cord_dir for copy destination, parameterize
make user/pass specific to the prod node
use headnode/common as top level config keys
fix inventory template
ignore generated files, remove cord-app-build which is vestigial
use ~/cord instead of ~/opencord for repo
fix variable
create cord_profile in /opt
renamed diag playbook
fix variables
Change-Id: If7d3fbdd6a2fc5bbf52770dcf2f97e5cac420746
diff --git a/config/cord_in_a_box.yml b/config/cord_in_a_box.yml
index 3743d3b..27b92cb 100644
--- a/config/cord_in_a_box.yml
+++ b/config/cord_in_a_box.yml
@@ -5,15 +5,21 @@
---
debug: false
-seedServer:
+# this is used to generate the genconfig/cord-inv file
+headnode:
ip: '10.100.198.201'
-
- # User name and password used by Ansible to connect to the host for remote
- # provisioning
ansible_user: 'vagrant'
ansible_ssh_pass: 'vagrant'
ansible_ssh_port: 22
+common:
+ # all of these are written to genconfig/config.yml, and needs a rework
+
+ # set to the "flavor" of cord you want to install
+ cord_profile: 'rcord'
+ cord_dir: '/opt/cord'
+ cord_profile_dir: '/opt/cord_profile'
+
# Specifies tasks within the head node provisioning not to execute, including:
#
# switch_support - don't download the switch ONL images as there are no
@@ -56,3 +62,4 @@
fabric:
network: '10.6.1.1/24'
management: '10.1.0.0/24'
+
diff --git a/config/default.yml b/config/default.yml
index e47182a..1003721 100644
--- a/config/default.yml
+++ b/config/default.yml
@@ -5,15 +5,15 @@
---
debug: false
-seedServer:
+# this is used to generate the genconfig/cord-inv file
+headnode:
ip: '10.100.198.201'
-
- # User name and password used by Ansible to connect to the host for remote
- # provisioning
ansible_user: 'vagrant'
ansible_ssh_pass: 'vagrant'
ansible_ssh_port: 22
+common:
+
# Specifies tasks within the head node provisioning not to execute, including:
#
# switch_support - don't download the switch ONL images as there are no
diff --git a/config/onlab_develop_pod.yml b/config/onlab_develop_pod.yml
index ea05cc1..f68bbfe 100644
--- a/config/onlab_develop_pod.yml
+++ b/config/onlab_develop_pod.yml
@@ -1,14 +1,16 @@
# Deployment configuration for a physical hardware POD
---
-seedServer:
+
+# this is used to generate the genconfig/cord-inv file
+headnode:
ip: '10.90.0.251'
- # User name and password used by Ansible to connect to the host for remote
- # provisioning. These default values are used for automated testing, change
- # with care.
ansible_user: 'cord'
ansible_ssh_pass: 'cord'
ansible_ssh_port: 22
+common:
+ # all of these are written to genconfig/config.yml, and needs a rework
+
# Network address information for the head node:
#
# fabric_ip - the IP address and mask bits to be used to configure the network
diff --git a/config/sample.yml b/config/sample.yml
index d3a261a..82ab6b4 100644
--- a/config/sample.yml
+++ b/config/sample.yml
@@ -1,15 +1,14 @@
# Deployment configuration for a phyical hardware POD
---
-seedServer:
- # IP address of the head node
- ip: '10.90.0.2'
- # User name, password, and ssh port used by Ansible to connect to the host for remote
- # provisioning
+headnode:
+ ip: '10.90.0.2'
ansible_user: 'ubuntu'
ansible_ssh_pass: 'ubuntu'
ansible_ssh_port: 22
+common:
+
# Network address information for the head node:
#
# fabric_ip - the IP address and mask bits to be used to configure the network