From 003dcd57b503546e13b71873c51c9e8798472567 Mon Sep 17 00:00:00 2001 From: LLParse Date: Fri, 25 Mar 2016 09:16:06 -0700 Subject: [PATCH] add convoy-gluster --- templates/convoy-gluster/0/docker-compose.yml | 23 ++ .../convoy-gluster/0/rancher-compose.yml | 43 +++ templates/convoy-gluster/1/docker-compose.yml | 23 ++ .../convoy-gluster/1/rancher-compose.yml | 37 +++ .../convoy-gluster/catalogIcon-convoy.svg | 252 ++++++++++++++++++ templates/convoy-gluster/config.yml | 5 + 6 files changed, 383 insertions(+) create mode 100644 templates/convoy-gluster/0/docker-compose.yml create mode 100644 templates/convoy-gluster/0/rancher-compose.yml create mode 100644 templates/convoy-gluster/1/docker-compose.yml create mode 100644 templates/convoy-gluster/1/rancher-compose.yml create mode 100644 templates/convoy-gluster/catalogIcon-convoy.svg create mode 100644 templates/convoy-gluster/config.yml diff --git a/templates/convoy-gluster/0/docker-compose.yml b/templates/convoy-gluster/0/docker-compose.yml new file mode 100644 index 0000000..688f7f8 --- /dev/null +++ b/templates/convoy-gluster/0/docker-compose.yml @@ -0,0 +1,23 @@ +convoy-gluster: + labels: + io.rancher.container.create_agent: 'true' + io.rancher.scheduler.global: 'true' + io.rancher.scheduler.affinity:host_label_soft: ${HOST_LABEL} + privileged: true + pid: host + volumes: + - /lib/modules:/lib/modules:ro + - /proc:/host/proc + - /var/run:/host/var/run + - /etc/docker/plugins:/etc/docker/plugins + external_links: + - "${GLUSTERFS_SERVICE}:glusterfs" + image: rancher/convoy-agent:v0.1.2 + command: volume-agent-glusterfs + +convoy-gluster-storagepool: + labels: + io.rancher.container.create_agent: 'true' + io.rancher.scheduler.affinity:host_label_soft: ${HOST_LABEL} + image: rancher/convoy-agent:v0.1.2 + command: storagepool-agent diff --git a/templates/convoy-gluster/0/rancher-compose.yml b/templates/convoy-gluster/0/rancher-compose.yml new file mode 100644 index 0000000..51655c5 --- /dev/null +++ b/templates/convoy-gluster/0/rancher-compose.yml @@ -0,0 +1,43 @@ +.catalog: + name: "Convoy GlusterFS" + version: "v0.1" + description: "Convoy GlusterFS - Docker volume plugin" + questions: + - variable: "VOLUME_POOL" + description: "Name of the GlusterFS Volume" + label: "GlusterFS Volume" + required: true + type: "string" + default: my_vol + - variable: "HOST_LABEL" + label: "Host label" + description: "Specify a Rancher host label here that will be used to determine where the Convoy GlusterFS service is deploy. This will determine what hosts can access the volumes managed by this stack." + type: "string" + default: convoy.glusterfs=true + required: true + - variable: "GLUSTERFS_SERVICE" + label: "GlusterFS Service" + type: "service" + required: true + description: Service that is running GlusterFS + +convoy-gluster: + metadata: + volume_pool: "${VOLUME_POOL}" + health_check: + request_line: GET /healthcheck HTTP/1.0 + port: 10241 + interval: 2000 + response_timeout: 2000 + unhealthy_threshold: 3 + healthy_threshold: 2 + +convoy-gluster-storagepool: + scale: 1 + health_check: + request_line: GET /healthcheck HTTP/1.0 + port: 10241 + interval: 2000 + response_timeout: 2000 + unhealthy_threshold: 3 + healthy_threshold: 2 diff --git a/templates/convoy-gluster/1/docker-compose.yml b/templates/convoy-gluster/1/docker-compose.yml new file mode 100644 index 0000000..df8a755 --- /dev/null +++ b/templates/convoy-gluster/1/docker-compose.yml @@ -0,0 +1,23 @@ +convoy-gluster: + labels: + io.rancher.container.create_agent: 'true' + io.rancher.scheduler.global: 'true' + privileged: true + pid: host + volumes: + - /lib/modules:/lib/modules:ro + - /proc:/host/proc + - /var/run:/host/var/run + - /etc/docker/plugins:/etc/docker/plugins + external_links: + - "${GLUSTERFS_SERVICE}:glusterfs" + image: rancher/convoy-agent:v0.3.0 + command: volume-agent-glusterfs + +convoy-gluster-storagepool: + labels: + io.rancher.container.create_agent: 'true' + volumes: + - /var/run:/host/var/run + image: rancher/convoy-agent:v0.3.0 + command: storagepool-agent diff --git a/templates/convoy-gluster/1/rancher-compose.yml b/templates/convoy-gluster/1/rancher-compose.yml new file mode 100644 index 0000000..1d98c18 --- /dev/null +++ b/templates/convoy-gluster/1/rancher-compose.yml @@ -0,0 +1,37 @@ +.catalog: + name: "Convoy GlusterFS" + version: "v0.2" + description: "Convoy GlusterFS - Docker volume plugin" + questions: + - variable: "VOLUME_POOL" + description: "Name of the GlusterFS Volume" + label: "GlusterFS Volume" + required: true + type: "string" + default: my_vol + - variable: "GLUSTERFS_SERVICE" + label: "GlusterFS Service" + type: "service" + required: true + description: Service that is running GlusterFS + +convoy-gluster: + metadata: + volume_pool: "${VOLUME_POOL}" + health_check: + request_line: GET /healthcheck HTTP/1.0 + port: 10241 + interval: 2000 + response_timeout: 2000 + unhealthy_threshold: 3 + healthy_threshold: 2 + +convoy-gluster-storagepool: + scale: 1 + health_check: + request_line: GET /healthcheck HTTP/1.0 + port: 10241 + interval: 2000 + response_timeout: 2000 + unhealthy_threshold: 3 + healthy_threshold: 2 diff --git a/templates/convoy-gluster/catalogIcon-convoy.svg b/templates/convoy-gluster/catalogIcon-convoy.svg new file mode 100644 index 0000000..584507a --- /dev/null +++ b/templates/convoy-gluster/catalogIcon-convoy.svg @@ -0,0 +1,252 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/convoy-gluster/config.yml b/templates/convoy-gluster/config.yml new file mode 100644 index 0000000..23ee25d --- /dev/null +++ b/templates/convoy-gluster/config.yml @@ -0,0 +1,5 @@ +name: Convoy GlusterFS +description: | + Docker Volume Manager for GlusterFS Volumes +version: v0.2 +category: Rancher Services