syndicate service planning
diff --git a/xos/configurations/syndicate/docker-compose.yml b/xos/configurations/syndicate/docker-compose.yml
index 9480dc7..39d85f7 100644
--- a/xos/configurations/syndicate/docker-compose.yml
+++ b/xos/configurations/syndicate/docker-compose.yml
@@ -24,19 +24,19 @@
- ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config:ro
- ./images:/opt/xos/images:ro
-xos_synchronizer_exampleservice:
+xos_synchronizer_syndicate:
image: xosproject/xos-synchronizer-openstack
- command: bash -c "sleep 120; python /opt/xos/synchronizers/exampleservice/exampleservice-synchronizer.py -C /opt/xos/synchronizers/exampleservice/exampleservice_config"
+ command: bash -c "sleep 120; python /opt/xos/synchronizers/syndicate/syndicate-synchronizer.py -C /opt/xos/synchronizers/syndicate/syndicate_config"
labels:
org.xosproject.kind: synchronizer
- org.xosproject.target: exampleservice
+ org.xosproject.target: syndicate
links:
- xos_db
extra_hosts:
- ctl:${MYIP}
volumes:
- ../common/xos_common_config:/opt/xos/xos_configuration/xos_common_config:ro
- - ../setup/id_rsa:/opt/xos/synchronizers/exampleservice/exampleservice_private_key:ro
+ - ../setup/id_rsa:/opt/xos/synchronizers/syndicate/syndicate_private_key:ro
xos:
image: xosproject/xos
diff --git a/xos/services/syndicate/README.md b/xos/services/syndicate/README.md
new file mode 100644
index 0000000..e33dd3b
--- /dev/null
+++ b/xos/services/syndicate/README.md
@@ -0,0 +1,6 @@
+# Syndicate Service
+
+Syndicate is a Scalable Software-define Storage System.
+
+Code/Info: https://github.com/syndicate-storage
+
diff --git a/xos/services/syndicate/__init__.py b/xos/services/syndicate/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/xos/services/syndicate/__init__.py
diff --git a/xos/services/syndicate/admin.py b/xos/services/syndicate/admin.py
new file mode 100644
index 0000000..cb7420c
--- /dev/null
+++ b/xos/services/syndicate/admin.py
@@ -0,0 +1,21 @@
+from core.admin import ReadOnlyAwareAdmin, SliceInline
+from core.middleware import get_request
+from core.models import User
+
+from django import forms
+from django.contrib import admin
+
+from services.syndicate.models import *
+
+
+class SyndicateServiceForm(forms.ModelForm):
+
+ class Meta:
+ model = SyndicateService
+
+
+class VolumeForm(forms.ModelForm):
+
+ class Meta:
+ model = Volume
+
diff --git a/xos/services/syndicate/models.py b/xos/services/syndicate/models.py
new file mode 100644
index 0000000..680188c
--- /dev/null
+++ b/xos/services/syndicate/models.py
@@ -0,0 +1,26 @@
+# Syndicate service models.py
+
+from core.models import Service
+from django.db import models, transaction
+
+SERVICE_NAME = 'syndicateservice'
+SERVICE_NAME_VERBOSE = 'Syndicate Service'
+
+class SyndicateService(Service):
+
+ KIND = SERVICE_NAME
+
+ class Meta:
+ app_label = SERVICE_NAME
+ verbose_name = SERVICE_NAME_VERBOSE
+
+
+class Volume(PLCoreBase):
+
+ KIND = SERVICE_NAME
+
+ class Meta:
+ app_label = SERVICE_NAME
+ verbose_name = SERVICE_NAME_VERBOSE
+
+
diff --git a/xos/synchronizers/syndicate/syndicate_config b/xos/synchronizers/syndicate/syndicate_config
new file mode 100644
index 0000000..6b3a746
--- /dev/null
+++ b/xos/synchronizers/syndicate/syndicate_config
@@ -0,0 +1,24 @@
+# Required by XOS
+[db]
+name=xos
+user=postgres
+password=password
+host=localhost
+port=5432
+
+# Required by XOS
+[api]
+nova_enabled=True
+
+# Sets options for the synchronizer
+[observer]
+name=syndicate
+dependency_graph=/opt/xos/synchronizers/syndicate/model-deps
+steps_dir=/opt/xos/synchronizers/syndicate/steps
+sys_dir=/opt/xos/synchronizers/syndicate/sys
+logfile=/var/log/xos_syndicate.log
+pretend=False
+backoff_disabled=True
+save_ansible_output=True
+proxy_ssh=False
+