[CORD-1360] Using new config

Change-Id: Ic5c8848e143bf544fec6839162605c6eaa19bd9b
diff --git a/xos/synchronizer/run.sh b/xos/synchronizer/run.sh
index d39b08a..409fc44 100755
--- a/xos/synchronizer/run.sh
+++ b/xos/synchronizer/run.sh
@@ -1,2 +1 @@
-export XOS_DIR=/opt/xos
-python volt-synchronizer.py  -C $XOS_DIR/synchronizers/volt/volt_config
+python volt-synchronizer.py
diff --git a/xos/synchronizer/volt-synchronizer.py b/xos/synchronizer/volt-synchronizer.py
index 26b44df..a58ff16 100755
--- a/xos/synchronizer/volt-synchronizer.py
+++ b/xos/synchronizer/volt-synchronizer.py
@@ -5,6 +5,11 @@
 import importlib
 import os
 import sys
+from xosconfig import Config
+
+config_file = os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + '/volt_config.yaml')
+Config.init(config_file, 'synchronizer-config-schema.yaml')
+
 observer_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),"../../synchronizers/new_base")
 sys.path.append(observer_path)
 mod = importlib.import_module("xos-synchronizer")
diff --git a/xos/synchronizer/volt_config b/xos/synchronizer/volt_config
deleted file mode 100644
index a756881..0000000
--- a/xos/synchronizer/volt_config
+++ /dev/null
@@ -1,18 +0,0 @@
-# Sets options for the synchronizer
-[observer]
-name=volt
-dependency_graph=/opt/xos/synchronizers/volt/model-deps
-# volt synchronizer has no steps and no sys dir
-steps_dir=
-sys_dir=
-model_policies_dir=/opt/xos/synchronizers/volt/model_policies
-log_file=console
-log_level=debug
-pretend=False
-backoff_disabled=True
-save_ansible_output=True
-proxy_ssh=True
-proxy_ssh_key=/opt/cord_profile/node_key
-proxy_ssh_user=root
-accessor_kind=api
-accessor_password=@/opt/xos/services/volt/credentials/xosadmin@opencord.org
diff --git a/xos/synchronizer/volt_config.yaml b/xos/synchronizer/volt_config.yaml
new file mode 100644
index 0000000..b18be32
--- /dev/null
+++ b/xos/synchronizer/volt_config.yaml
@@ -0,0 +1,6 @@
+name: volt-synchronizer
+accessor:
+  username: xosadmin@opencord.org
+  password: "@/opt/xos/services/volt/credentials/xosadmin@opencord.org"
+dependency_graph: "/opt/xos/synchronizers/volt/model-deps"
+model_policies_dir: "/opt/xos/synchronizers/volt/model_policies"
\ No newline at end of file