CORD-1151
Make cord_dir and cord_profile_dir local to config node
use head_* and config_* prefixes to avoid hardcoding paths
config-side ssh key generation+
fix frontend & mock builds
[build] group in inventory
fix inventory strangeness
raise privs when creating ssh_pki_dir
move admin-openrc.sh.j2 to cord-profile
add copy-cord-playbook.yml, clarify where it runs
fix paths for head_cord_profile_dir with mock/frontend
use /opt/cord_profile/admin-openrc.sh rather than ~/admin-openrc.sh
install pki
make comment in do-enlist-compute-node accurate, set correct interface
remove hardcoded credential path
logging and ssh key fixes
Change-Id: Ie7560c911dce1558e09806c9997884dfbd475e9c
diff --git a/profile_manifests/rcord.yml b/profile_manifests/rcord.yml
index 4e751f8..10e1057 100644
--- a/profile_manifests/rcord.yml
+++ b/profile_manifests/rcord.yml
@@ -7,8 +7,9 @@
site_humanname: MySite
deployment_type: MyDeployment
-xos_admin_user: xosadmin@opencord.org
-xos_admin_pass: "{{ lookup('password', 'credentials/xosadmin@opencord.org chars=ascii_letters,digits') }}"
+credentials_dir: "{{ playbook_dir }}/credentials"
+xos_admin_user: "xosadmin@opencord.org"
+xos_admin_pass: "{{ lookup('password', credentials_dir ~ '/xosadmin@opencord.org chars=ascii_letters,digits') }}"
xos_admin_first: XOS
xos_admin_last: Admin
@@ -56,60 +57,29 @@
- name: vtn
path: onos-apps/apps/vtn
keypair: vsg_rsa
- synchronizer: true
- name: openstack
path: orchestration/xos_services/openstack
- synchronizer: true
- name: onos
path: orchestration/xos_services/onos-service
keypair: onos_rsa
- synchronizer: true
- name: vrouter
path: orchestration/xos_services/vrouter
- synchronizer: true
- name: vsg
path: orchestration/xos_services/vsg
keypair: vsg_rsa
- synchronizer: true
- name: vtr
path: orchestration/xos_services/vtr
keypair: vsg_rsa
- synchronizer: true
- name: fabric
path: orchestration/xos_services/fabric
- synchronizer: true
- name: exampleservice
path: orchestration/xos_services/exampleservice
keypair: exampleservice_rsa
- synchronizer: true
# - name: monitoring
# path: orchestration/xos_services/monitoring
# keypair: monitoringservice_rsa
# synchronizer: false
-xos_service_sshkeys:
- - name: onos_rsa
- source_path: "~/.ssh/id_rsa"
- - name: onos_rsa.pub
- source_path: "~/.ssh/id_rsa.pub"
- - name: volt_rsa
- source_path: "~/.ssh/id_rsa"
- - name: volt_rsa.pub
- source_path: "~/.ssh/id_rsa.pub"
- - name: vsg_rsa
- source_path: "~/.ssh/id_rsa"
- - name: vsg_rsa.pub
- source_path: "~/.ssh/id_rsa.pub"
-# needed onboarding synchronizer doesn't require service code to be present when started
- - name: exampleservice_rsa
- source_path: "~/.ssh/id_rsa"
- - name: exampleservice_rsa.pub
- source_path: "~/.ssh/id_rsa.pub"
- - name: monitoringservice_rsa
- source_path: "~/.ssh/id_rsa"
- - name: monitoringservice_rsa.pub
- source_path: "~/.ssh/id_rsa.pub"
-
profile_library: "rcord"
# VM networks/bridges on head