From 2f7de2b522a7a6fb5a7fd4aec6b35f8e8b7e62a8 Mon Sep 17 00:00:00 2001 From: James Oliver Date: Tue, 22 Mar 2016 23:12:29 -0700 Subject: [PATCH] add dnsimple --- templates/dnsimple/0/docker-compose.yml | 13 +++ templates/dnsimple/0/rancher-compose.yml | 36 +++++++ templates/dnsimple/1/docker-compose.yml | 13 +++ templates/dnsimple/1/rancher-compose.yml | 36 +++++++ templates/dnsimple/catalogIcon-dnsimple.svg | 105 ++++++++++++++++++++ templates/dnsimple/config.yml | 5 + 6 files changed, 208 insertions(+) create mode 100644 templates/dnsimple/0/docker-compose.yml create mode 100644 templates/dnsimple/0/rancher-compose.yml create mode 100644 templates/dnsimple/1/docker-compose.yml create mode 100644 templates/dnsimple/1/rancher-compose.yml create mode 100644 templates/dnsimple/catalogIcon-dnsimple.svg create mode 100644 templates/dnsimple/config.yml diff --git a/templates/dnsimple/0/docker-compose.yml b/templates/dnsimple/0/docker-compose.yml new file mode 100644 index 0000000..a885a3f --- /dev/null +++ b/templates/dnsimple/0/docker-compose.yml @@ -0,0 +1,13 @@ +dnsimple: + image: rancher/external-dns:v0.1.9 + command: --provider dnsimple + expose: + - 1000 + environment: + DNSIMPLE_TOKEN: ${DNSIMPLE_TOKEN} + DNSIMPLE_EMAIL: ${DNSIMPLE_EMAIL} + ROOT_DOMAIN: ${ROOT_DOMAIN} + TTL: ${TTL} + labels: + io.rancher.container.create_agent: "true" + io.rancher.container.agent.role: "external-dns" diff --git a/templates/dnsimple/0/rancher-compose.yml b/templates/dnsimple/0/rancher-compose.yml new file mode 100644 index 0000000..1d50c03 --- /dev/null +++ b/templates/dnsimple/0/rancher-compose.yml @@ -0,0 +1,36 @@ +.catalog: + name: "DNSimple DNS" + version: "v0.1.9-rancher1" + description: "Rancher External DNS service powered by DNSimple. Requires Rancher version 0.44.0" + minimum_rancher_version: v0.44.0 + questions: + - variable: "DNSIMPLE_EMAIL" + label: "DNSimple account email address" + description: "EMail address associated with your DNSimple account" + type: "string" + required: true + - variable: "DNSIMPLE_TOKEN" + label: "DNSimple API token" + description: "API token for your DNSimple account" + type: "string" + required: true + - variable: "ROOT_DOMAIN" + label: "Root domain" + description: "DNS entries will be created for ..." + type: "string" + required: true + - variable: "TTL" + label: "TTL" + description: "The resource record cache time to live (TTL), in seconds" + type: "int" + default: 300 + required: false + +dnsimple: + health_check: + port: 1000 + interval: 2000 + unhealthy_threshold: 3 + request_line: GET / HTTP/1.0 + healthy_threshold: 2 + response_timeout: 2000 diff --git a/templates/dnsimple/1/docker-compose.yml b/templates/dnsimple/1/docker-compose.yml new file mode 100644 index 0000000..5561686 --- /dev/null +++ b/templates/dnsimple/1/docker-compose.yml @@ -0,0 +1,13 @@ +dnsimple: + image: rancher/external-dns:v0.2.1 + command: --provider dnsimple + expose: + - 1000 + environment: + DNSIMPLE_TOKEN: ${DNSIMPLE_TOKEN} + DNSIMPLE_EMAIL: ${DNSIMPLE_EMAIL} + ROOT_DOMAIN: ${ROOT_DOMAIN} + TTL: ${TTL} + labels: + io.rancher.container.create_agent: "true" + io.rancher.container.agent.role: "external-dns" diff --git a/templates/dnsimple/1/rancher-compose.yml b/templates/dnsimple/1/rancher-compose.yml new file mode 100644 index 0000000..191684b --- /dev/null +++ b/templates/dnsimple/1/rancher-compose.yml @@ -0,0 +1,36 @@ +.catalog: + name: "DNSimple DNS" + version: "v0.2.1-rancher1" + description: "Rancher External DNS service powered by DNSimple. Requires Rancher version 0.44.0" + minimum_rancher_version: v0.44.0 + questions: + - variable: "DNSIMPLE_EMAIL" + label: "DNSimple account email address" + description: "EMail address associated with your DNSimple account" + type: "string" + required: true + - variable: "DNSIMPLE_TOKEN" + label: "DNSimple API token" + description: "API token for your DNSimple account" + type: "string" + required: true + - variable: "ROOT_DOMAIN" + label: "Root domain" + description: "DNS entries will be created for ..." + type: "string" + required: true + - variable: "TTL" + label: "TTL" + description: "The resource record cache time to live (TTL), in seconds" + type: "int" + default: 300 + required: false + +dnsimple: + health_check: + port: 1000 + interval: 2000 + unhealthy_threshold: 3 + request_line: GET / HTTP/1.0 + healthy_threshold: 2 + response_timeout: 2000 diff --git a/templates/dnsimple/catalogIcon-dnsimple.svg b/templates/dnsimple/catalogIcon-dnsimple.svg new file mode 100644 index 0000000..521897b --- /dev/null +++ b/templates/dnsimple/catalogIcon-dnsimple.svg @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/dnsimple/config.yml b/templates/dnsimple/config.yml new file mode 100644 index 0000000..8da87ee --- /dev/null +++ b/templates/dnsimple/config.yml @@ -0,0 +1,5 @@ +name: DNSimple DNS +description: | + Rancher External DNS service powered by DNSimple +version: v0.2.1-rancher1 +category: Rancher Services