From c611e626fbb3f73bada47e81986a1c8fe97ccc32 Mon Sep 17 00:00:00 2001 From: WilliamMiceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Thu, 20 Sep 2018 22:20:00 -0400 Subject: [PATCH] Testing local volume version --- templates/Bind.1/0/README.md | 1 + templates/Bind.1/0/docker-compose.yml | 26 +++++++++++ templates/Bind.1/0/rancher-compose.yml | 61 ++++++++++++++++++++++++++ templates/Bind.1/catalogIcon-bind.svg | 1 + templates/Bind.1/config.yml | 8 ++++ 5 files changed, 97 insertions(+) create mode 100644 templates/Bind.1/0/README.md create mode 100644 templates/Bind.1/0/docker-compose.yml create mode 100644 templates/Bind.1/0/rancher-compose.yml create mode 100644 templates/Bind.1/catalogIcon-bind.svg create mode 100644 templates/Bind.1/config.yml diff --git a/templates/Bind.1/0/README.md b/templates/Bind.1/0/README.md new file mode 100644 index 0000000..da29e6f --- /dev/null +++ b/templates/Bind.1/0/README.md @@ -0,0 +1 @@ +# Bind \ No newline at end of file diff --git a/templates/Bind.1/0/docker-compose.yml b/templates/Bind.1/0/docker-compose.yml new file mode 100644 index 0000000..0b922a6 --- /dev/null +++ b/templates/Bind.1/0/docker-compose.yml @@ -0,0 +1,26 @@ +version: '2' +services: + bind: + image: sameersbn/bind + dns: + - 1.1.1.1 + - 1.0.0.1 + environment: + WEBMIN_ENABLED: ${WEBMIN_ENABLED} + {{- if eq .Values.WEBMIN_ENABLED "true"}} + ROOT_PASSWORD: ${WEBMIN_ROOT_PASS} + {{- end}} + labels: + io.rancher.container.pull_image: always + {{- if (.Values.HOST_LABEL)}} + io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} + {{- end}} + ports: + - "53:53/tcp" + - "53:53/udp" + {{- if eq .Values.WEBMIN_ENABLED "true"}} + - "${WEBMIN_PORT}:10000" + {{- end}} + restart: on-failure + volumes: + - /RancherCattleData/${DATA_DIR}/Data:/data \ No newline at end of file diff --git a/templates/Bind.1/0/rancher-compose.yml b/templates/Bind.1/0/rancher-compose.yml new file mode 100644 index 0000000..76e7ce0 --- /dev/null +++ b/templates/Bind.1/0/rancher-compose.yml @@ -0,0 +1,61 @@ +version: '2' +catalog: + name: Bind + version: latest + # description: + # minimum_rancher_version: + # maximum_rancher_version: + # upgrade_from: + questions: + + - variable: "HOST_LABEL" + label: "Host Label Key/Value Pair" + description: | + The Key/Value pair on the host which Bind should be deployed. + default: "host.id=Controller" + required: false + type: string + + - variable: "WEBMIN_ENABLED" + label: "Enable Webmin" + description: | + Enable or Disable Webmin. + default: true + required: true + type: boolean + + - variable: "WEBMIN_ROOT_PASS" + label: "Webmin Password" + description: | + The password for the Webmin "root" user. If unset, it will be "password". + If Webmin is disabled, this will not have any effect. + # default: + required: false + type: password + + - variable: "WEBMIN_PORT" + label: "Webmin Port" + description: | + The port that the Webmin interface will be accessible on. + default: "1100" + required: false + type: string + + - variable: DATA_DIR + label: "Data Directory" + description: | + The directory within the stack directory to store data + default: "Personal/Bind" + required: true + type: string + +bind: + scale: 1 + health_check: + port: 53 + interval: 2000 + initializing_timeout: 20000 + unhealthy_threshold: 3 + strategy: recreate + healthy_threshold: 2 + response_timeout: 2000 \ No newline at end of file diff --git a/templates/Bind.1/catalogIcon-bind.svg b/templates/Bind.1/catalogIcon-bind.svg new file mode 100644 index 0000000..e8fbbf2 --- /dev/null +++ b/templates/Bind.1/catalogIcon-bind.svg @@ -0,0 +1 @@ +catalogIcon-bindDNS Server with WebminAdmin InterfaceBINDW \ No newline at end of file diff --git a/templates/Bind.1/config.yml b/templates/Bind.1/config.yml new file mode 100644 index 0000000..642914e --- /dev/null +++ b/templates/Bind.1/config.yml @@ -0,0 +1,8 @@ +name: Bind +description: | + BIND DNS server with Webmin admin interface +version: latest +category: Networking +maintainer: WilliamMiceli +# license: +# projectURL: \ No newline at end of file