From 0bab879f360a07879e444f8213961e0c91a2e90b Mon Sep 17 00:00:00 2001 From: Bill Maxwell Date: Wed, 23 Mar 2016 21:26:34 -0700 Subject: [PATCH] added cloudflare from catalog --- templates/cloudflare/0/docker-compose.yml | 13 ++ templates/cloudflare/0/rancher-compose.yml | 36 ++++ templates/cloudflare/1/docker-compose.yml | 13 ++ templates/cloudflare/1/rancher-compose.yml | 36 ++++ .../cloudflare/catalogIcon-cloudflare.svg | 175 ++++++++++++++++++ templates/cloudflare/config.yml | 5 + 6 files changed, 278 insertions(+) create mode 100644 templates/cloudflare/0/docker-compose.yml create mode 100644 templates/cloudflare/0/rancher-compose.yml create mode 100644 templates/cloudflare/1/docker-compose.yml create mode 100644 templates/cloudflare/1/rancher-compose.yml create mode 100644 templates/cloudflare/catalogIcon-cloudflare.svg create mode 100644 templates/cloudflare/config.yml diff --git a/templates/cloudflare/0/docker-compose.yml b/templates/cloudflare/0/docker-compose.yml new file mode 100644 index 0000000..77cf0d5 --- /dev/null +++ b/templates/cloudflare/0/docker-compose.yml @@ -0,0 +1,13 @@ +cloudflare: + image: rancher/external-dns:v0.1.9 + command: -provider=cloudflare + expose: + - 1000 + environment: + CLOUDFLARE_EMAIL: ${CLOUDFLARE_EMAIL} + CLOUDFLARE_KEY: ${CLOUDFLARE_KEY} + ROOT_DOMAIN: ${ROOT_DOMAIN} + TTL: ${TTL} + labels: + io.rancher.container.create_agent: "true" + io.rancher.container.agent.role: "external-dns" diff --git a/templates/cloudflare/0/rancher-compose.yml b/templates/cloudflare/0/rancher-compose.yml new file mode 100644 index 0000000..3c30fd0 --- /dev/null +++ b/templates/cloudflare/0/rancher-compose.yml @@ -0,0 +1,36 @@ +.catalog: + name: "CloudFlare DNS" + version: "v0.1.9-rancher1" + description: "Rancher External DNS service powered by CloudFlare. Requires Rancher version 0.44.0" + minimum_rancher_version: v0.44.0 + questions: + - variable: "CLOUDFLARE_EMAIL" + label: "CloudFlare email address" + description: "Email address associated with your CloudFlare account" + type: "string" + required: true + - variable: "CLOUDFLARE_KEY" + label: "CloudFlare API key" + description: "API key for your CloudFlare account" + type: "string" + required: true + - variable: "ROOT_DOMAIN" + label: "Domain" + description: "The DNS zone (domain) managed by CloudFlare. 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 (minimum 120)" + type: "int" + default: 300 + required: false + +cloudflare: + 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/cloudflare/1/docker-compose.yml b/templates/cloudflare/1/docker-compose.yml new file mode 100644 index 0000000..83a7097 --- /dev/null +++ b/templates/cloudflare/1/docker-compose.yml @@ -0,0 +1,13 @@ +cloudflare: + image: rancher/external-dns:v0.2.1 + command: -provider=cloudflare + expose: + - 1000 + environment: + CLOUDFLARE_EMAIL: ${CLOUDFLARE_EMAIL} + CLOUDFLARE_KEY: ${CLOUDFLARE_KEY} + ROOT_DOMAIN: ${ROOT_DOMAIN} + TTL: ${TTL} + labels: + io.rancher.container.create_agent: "true" + io.rancher.container.agent.role: "external-dns" diff --git a/templates/cloudflare/1/rancher-compose.yml b/templates/cloudflare/1/rancher-compose.yml new file mode 100644 index 0000000..454d833 --- /dev/null +++ b/templates/cloudflare/1/rancher-compose.yml @@ -0,0 +1,36 @@ +.catalog: + name: "CloudFlare DNS" + version: "v0.2.1-rancher1" + description: "Rancher External DNS service powered by CloudFlare. Requires Rancher version 0.44.0" + minimum_rancher_version: v0.44.0 + questions: + - variable: "CLOUDFLARE_EMAIL" + label: "CloudFlare email address" + description: "Email address associated with your CloudFlare account" + type: "string" + required: true + - variable: "CLOUDFLARE_KEY" + label: "CloudFlare API key" + description: "API key for your CloudFlare account" + type: "string" + required: true + - variable: "ROOT_DOMAIN" + label: "Domain" + description: "The DNS zone (domain) managed by CloudFlare. 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 (minimum 120)" + type: "int" + default: 300 + required: false + +cloudflare: + 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/cloudflare/catalogIcon-cloudflare.svg b/templates/cloudflare/catalogIcon-cloudflare.svg new file mode 100644 index 0000000..dfad832 --- /dev/null +++ b/templates/cloudflare/catalogIcon-cloudflare.svg @@ -0,0 +1,175 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/cloudflare/config.yml b/templates/cloudflare/config.yml new file mode 100644 index 0000000..9bb8fad --- /dev/null +++ b/templates/cloudflare/config.yml @@ -0,0 +1,5 @@ +name: CloudFlare DNS +description: | + Rancher External DNS service powered by CloudFlare +version: v0.2.1-rancher1 +category: Rancher Services