CORD-1130 remove onboarding artifacts from exampleservice
Change-Id: I5484c366ccfc4604759970dfcd01709cd2fe85de
(cherry picked from commit a45f7c9503621d472cb23e92eb7952a3730a0a45)
diff --git a/xos/exampleservice-onboard.yaml b/xos/exampleservice-onboard.yaml
index 4bdb44d..72c3ed8 100644
--- a/xos/exampleservice-onboard.yaml
+++ b/xos/exampleservice-onboard.yaml
@@ -15,8 +15,6 @@
# base_url is non-null.
xproto: ./
admin: admin.py
- synchronizer: synchronizer/manifest
- synchronizer_run: exampleservice-synchronizer.py
tosca_custom_types: exampleservice.yaml
tosca_resource: tosca/resources/exampleservice.py, tosca/resources/exampletenant.py
rest_service: api/service/exampleservice.py
diff --git a/xos/exampleservice-onboardnew.yaml b/xos/exampleservice-onboardnew.yaml
deleted file mode 100644
index 7e61f70..0000000
--- a/xos/exampleservice-onboardnew.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-tosca_definitions_version: tosca_simple_yaml_1_0
-
-description: Onboard the exampleservice
-
-imports:
- - custom_types/xos.yaml
-
-topology_template:
- node_templates:
- exampleservice:
- type: tosca.nodes.ServiceController
- properties:
- base_url: file:///opt/xos_services/exampleservice/xos/
- # The following will concatenate with base_url automatically, if
- # base_url is non-null.
- models: models.py
- admin: admin.py
- tosca_custom_types: exampleservice.yaml
- tosca_resource: tosca/resources/exampleservice.py, tosca/resources/exampletenant.py
- rest_service: api/service/exampleservice.py
- rest_tenant: api/tenant/exampletenant.py
- private_key: file:///opt/xos/key_import/exampleservice_rsa
- public_key: file:///opt/xos/key_import/exampleservice_rsa.pub
- no_build: true
- image: xosproject/exampleservice-synchronizer
\ No newline at end of file
diff --git a/xos/synchronizer/Makefile b/xos/synchronizer/Makefile
deleted file mode 100644
index 7d196e3..0000000
--- a/xos/synchronizer/Makefile
+++ /dev/null
@@ -1,5 +0,0 @@
-synchronizer:
- sudo docker build --rm -f Dockerfile.synchronizer -t xosproject/exampleservice-synchronizer .
-
-up:
- docker-compose -p exampleservice up -d
diff --git a/xos/synchronizer/docker-compose.yml b/xos/synchronizer/docker-compose.yml
deleted file mode 100644
index 551094a..0000000
--- a/xos/synchronizer/docker-compose.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-version: '2'
-
-networks:
- xos:
- external: true
-
-services:
- synchronizer:
- image: xosproject/exampleservice-synchronizer
- networks:
- - xos
- #command: bash -c "cd /opt/xos/synchronizers/exampleservice; ./run-from-api.sh"
- #command: bash -c "sleep 86400"
- volumes:
- - /opt/cord_profile/key_import/exampleservice_rsa:/opt/xos/services/exampleservice/keys/exampleservice_rsa:ro
- - /opt/cord_profile/node_key:/opt/cord_profile/node_key:ro
- - /opt/cord/build/platform-install/credentials/xosadmin@opencord.org:/opt/xos/services/exampleservice/credentials/xosadmin@opencord.org
- external_links:
- - rcordbs_xos_redis_1:redis
- logging:
- driver: "json-file"
- options:
- max-size: "1000k"
- max-file: "5"
diff --git a/xos/synchronizer/exampleservice_config b/xos/synchronizer/exampleservice_config
deleted file mode 100644
index 38f346a..0000000
--- a/xos/synchronizer/exampleservice_config
+++ /dev/null
@@ -1,27 +0,0 @@
-# Required by XOS
-[db]
-name=xos
-user=postgres
-password=password
-host=xos_db
-port=5432
-
-# Required by XOS
-[api]
-nova_enabled=True
-
-# Sets options for the synchronizer
-[observer]
-name=exampleservice
-dependency_graph=/opt/xos/synchronizers/exampleservice/model-deps
-steps_dir=/opt/xos/synchronizers/exampleservice/steps
-sys_dir=/opt/xos/synchronizers/exampleservice/sys
-logfile=/var/log/xos_backend.log
-pretend=False
-backoff_disabled=True
-save_ansible_output=True
-proxy_ssh=True
-proxy_ssh_key=/opt/cord_profile/node_key
-proxy_ssh_user=root
-enable_watchers=True
-
diff --git a/xos/synchronizer/manifest b/xos/synchronizer/manifest
deleted file mode 100644
index b4f7827..0000000
--- a/xos/synchronizer/manifest
+++ /dev/null
@@ -1,15 +0,0 @@
-manifest
-monitoring_agent/__init__.py
-monitoring_agent/monitoring_agent.py
-monitoring_agent/exampleservice_stats.py
-monitoring_agent/monitoring_agent.conf
-steps/sync_exampletenant.py
-steps/roles/install_apache/tasks/main.yml
-steps/roles/create_index/templates/index.html.j2
-steps/roles/create_index/tasks/main.yml
-steps/exampletenant_playbook.yaml
-steps/monitoring_agent.yaml
-exampleservice-synchronizer.py
-model-deps
-run.sh
-exampleservice_config
diff --git a/xos/synchronizer/run.sh b/xos/synchronizer/run.sh
deleted file mode 100755
index e6da8f6..0000000
--- a/xos/synchronizer/run.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-export XOS_DIR=/opt/xos
-python exampleservice-synchronizer.py -C $XOS_DIR/synchronizers/exampleservice/exampleservice_config