CORD-1053 refactored onboarding recipe for vtr
Change-Id: I4f03140197b9643d48a4f739dd2c26d2ac91af58
diff --git a/xos/synchronizer/vtr_from_api_config b/xos/synchronizer/vtr_from_api_config
index 1b20d7c..27c52d7 100644
--- a/xos/synchronizer/vtr_from_api_config
+++ b/xos/synchronizer/vtr_from_api_config
@@ -15,6 +15,7 @@
proxy_ssh_user=root
accessor_kind=api
accessor_password=@/opt/xos/services/vtr/credentials/xosadmin@opencord.org
+required_models=VSGService, VTRService, VTRTenant, CordSubscriberRoot
[networking]
use_vtn=True
diff --git a/xos/vtr-onboardnew.yaml b/xos/vtr-onboardnew.yaml
new file mode 100644
index 0000000..f4f6dcd
--- /dev/null
+++ b/xos/vtr-onboardnew.yaml
@@ -0,0 +1,25 @@
+tosca_definitions_version: tosca_simple_yaml_1_0
+
+description: Onboard the exampleservice
+
+imports:
+ - custom_types/xos.yaml
+
+topology_template:
+ node_templates:
+ servicecontroller#vtr:
+ type: tosca.nodes.ServiceController
+ properties:
+ base_url: file:///opt/xos_services/vtr/xos/
+ # The following will concatenate with base_url automatically, if
+ # base_url is non-null.
+ models: models.py
+ admin: admin.py
+ admin_template: templates/vtradmin.html
+ tosca_custom_types: tosca/custom_types/vtr.yaml
+ tosca_resource: tosca/resources/vtrservice.py
+ rest_tenant: api/tenant/truckroll.py
+ private_key: file:///opt/xos/key_import/vsg_rsa
+ public_key: file:///opt/xos/key_import/vsg_rsa.pub
+ no_build: true
+ image: xosproject/vtr-synchronizer