diff --git a/README.md b/README.md index 8bff1da..839bec3 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,6 @@ [![Build Status](https://drone.autonomic.zone/api/badges/autonomic-cooperative/minio/status.svg)](https://drone.autonomic.zone/autonomic-cooperative/minio) -> https://docs.min.io/ +> https://min.io/ -# Deploy - -1. Push your changes to master and Dokku will try to automatically release -1. See the [dashboard to see the build](https://drone.autonomic.zone/autonomic-cooperative/minio/) +> https://minio.autonomic.zone diff --git a/ansible/.vault.sh b/ansible/.vault.sh deleted file mode 100755 index 7683362..0000000 --- a/ansible/.vault.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -set -eu -o pipefail - -echo $(pass show hosts/autonomic-minio/vault/password) diff --git a/ansible/post-deploy.yml b/ansible/post-deploy.yml deleted file mode 100644 index 2f260d6..0000000 --- a/ansible/post-deploy.yml +++ /dev/null @@ -1,66 +0,0 @@ ---- -- hosts: all - gather_facts: false - tasks: - - name: Load variables - include_vars: - dir: "{{ dokku_lib_root }}/data/ansible/minio/vars/" - extensions: - - yml - - - name: Set HTTP 80 port proxy - dokku_ports: - app: minio - mappings: - - "http:80:{{ http_port }}" - state: present - - - name: Setup LE certificates - shell: dokku letsencrypt minio - args: - creates: /home/dokku/minio/letsencrypt/certs - - - name: Setup LE certificates renew cron job - shell: dokku letsencrypt:cron-job --add - args: - creates: /home/dokku/minio/letsencrypt/cron-job - - - name: Remove automatically configured ports - dokku_ports: - app: minio - mappings: - - "http:{{ http_port }}:{{ http_port }}" - state: absent - - - name: Set HTTP 443 port - dokku_ports: - app: minio - mappings: - - "https:443:{{ http_port }}" - state: present - - - name: Create Nginx customisation directory - file: - path: /home/dokku/minio/nginx.conf.d/ - state: directory - owner: dokku - group: dokku - become: true - - - name: Copy over the Nginx custom upload file - template: - src: "{{ item }}" - dest: "/home/dokku/minio/nginx.conf.d/{{ item }}" - owner: dokku - group: dokku - with_items: - - upload.conf - - proxy.conf - - headers.conf - become: true - - - name: Reload Nginx to enable custom configurations - become: true - service: - name: nginx - state: reloaded diff --git a/ansible/pre-deploy.yml b/ansible/pre-deploy.yml deleted file mode 100644 index 4e09417..0000000 --- a/ansible/pre-deploy.yml +++ /dev/null @@ -1,41 +0,0 @@ ---- -- hosts: all - gather_facts: false - tasks: - - name: Load variables - include_vars: - dir: "{{ dokku_lib_root }}/data/ansible/minio/vars/" - extensions: - - yml - - - name: "Configure {{ domain }} domain" - dokku_domains: - app: minio - domains: - - "{{ domain }}" - state: present - - - name: Create application directories - file: - path: "{{ item }}" - state: directory - owner: dokku - group: dokku - with_items: - - /var/lib/minio - become: true - - - name: Specify docker volume mount - dokku_storage: - app: minio - mounts: - - /var/lib/minio:/data - - - name: Configure the app environment - dokku_config: - app: minio - restart: false - config: - DOKKU_LETSENCRYPT_EMAIL: "{{ autonomic_admin_mail }}" - MINIO_ACCESS_KEY: "{{ minio_access_key }}" - MINIO_SECRET_KEY: "{{ minio_secret_key }}" diff --git a/ansible/requirements.yml b/ansible/requirements.yml deleted file mode 100644 index e2e3214..0000000 --- a/ansible/requirements.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -- src: dokku_bot.ansible_dokku - version: v2020.3.24 - -- src: https://git.coop/decentral1se/autonomic.gandi/-/archive/0.0.5/autonomic.gandi-0.0.5.tar.gz - name: autonomic.gandi diff --git a/ansible/vars/all.yml b/ansible/vars/all.yml deleted file mode 100644 index d2c19cc..0000000 --- a/ansible/vars/all.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -autonomic_admin_mail: "helo@autonomic.zone" -domain: "minio.autonomic.zone" -http_port: "9000" diff --git a/ansible/vars/ansible_become_pass.yml b/ansible/vars/ansible_become_pass.yml deleted file mode 100644 index 4014706..0000000 --- a/ansible/vars/ansible_become_pass.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -ansible_become_pass: !vault | - $ANSIBLE_VAULT;1.1;AES256 - 36333131306565373732623438663266643933396630666665316465336162313237326464316137 - 3064373965633062333438353738373634643130663030350a373532306239336633346631656561 - 36616135366163363563343963383533303433636535646239373861306631616139656334346631 - 3534653139386566630a663761633661373631623933343566656330333135616631353131646536 - 33626637393339363733326464646163616666666362623866623536303764626638 diff --git a/ansible/vars/minio_access_key.yml b/ansible/vars/minio_access_key.yml deleted file mode 100644 index 56d897e..0000000 --- a/ansible/vars/minio_access_key.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -minio_access_key: !vault | - $ANSIBLE_VAULT;1.1;AES256 - 31323830666263323334613235333630343533353533376232316132653665623162383539396465 - 3538343733346230363332373865396139323130396466310a663137303563626532383339396465 - 31333236643765366435323336323962316235653636613133313263376163303532376261613137 - 6132333963346337370a393761346666643530663639376635356163313665366161336336333765 - 36316438386366323463333761623264386231386164366130386231353362353565323131313462 - 6130353137623033396333373365653939333835653630356135 diff --git a/ansible/vars/minio_secret_key.yml b/ansible/vars/minio_secret_key.yml deleted file mode 100644 index 7880d65..0000000 --- a/ansible/vars/minio_secret_key.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -minio_secret_key: !vault | - $ANSIBLE_VAULT;1.1;AES256 - 37313863613633623332646130386238633938663439366533383836363433313730306664316265 - 3365363330333865333461363034343862303966353637310a323435313037646234616566643565 - 38666465626137333731386330613666336335633230616135316532386434323761313765393235 - 6230633066363636300a383964356634623966336666646466306133356630643033613934396635 - 31336566366337373739336339613735316132323434663930376133383638383538353463383039 - 3233313333386333396566636138366336633532356637303461 diff --git a/app.json b/app.json deleted file mode 100644 index a3a91ae..0000000 --- a/app.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "minio", - "description": "High Performance, Kubernetes-Friendly Object Storage", - "repository": "https://git.autonomic.zone/autonomic-cooperative/minio" -} diff --git a/deploy.d/config.yml b/deploy.d/config.yml new file mode 100644 index 0000000..c6975b0 --- /dev/null +++ b/deploy.d/config.yml @@ -0,0 +1,9 @@ +--- +port: "9000" +domain: "minio.autonomic.zone" +mounts: + - /var/lib/minio:/data +env: + DOKKU_LETSENCRYPT_EMAIL: "helo@autonomic.zone" + MINIO_ACCESS_KEY: "{{ minio_access_key }}" + MINIO_SECRET_KEY: "{{ minio_secret_key }}" diff --git a/ansible/templates/headers.conf b/deploy.d/nginx.d/headers.conf similarity index 100% rename from ansible/templates/headers.conf rename to deploy.d/nginx.d/headers.conf diff --git a/ansible/templates/proxy.conf b/deploy.d/nginx.d/proxy.conf similarity index 100% rename from ansible/templates/proxy.conf rename to deploy.d/nginx.d/proxy.conf diff --git a/ansible/templates/upload.conf b/deploy.d/nginx.d/upload.conf similarity index 100% rename from ansible/templates/upload.conf rename to deploy.d/nginx.d/upload.conf diff --git a/deploy.d/vault/minio_access_key.yml b/deploy.d/vault/minio_access_key.yml new file mode 100644 index 0000000..14cb2f3 --- /dev/null +++ b/deploy.d/vault/minio_access_key.yml @@ -0,0 +1,9 @@ +--- +minio_access_key: !vault |- + $ANSIBLE_VAULT;1.1;AES256 + 32383433363138666363336361393662636164383833313364313966393864383866333563613239 + 3633643865306164353363343436383134616234323562650a336532393730313265366365336166 + 37636335366262623831373565643766303135356561363034623237616138303638623337663633 + 3062383261323935350a633065346435656135393832373663373539376535666363343062306563 + 30356565633739383966633063346565336261323761656630373166633633633331373364373761 + 6438336639383230653431313835656331613861333066313337 diff --git a/deploy.d/vault/minio_secret_key.yml b/deploy.d/vault/minio_secret_key.yml new file mode 100644 index 0000000..81e8efb --- /dev/null +++ b/deploy.d/vault/minio_secret_key.yml @@ -0,0 +1,9 @@ +--- +minio_secret_key: !vault |- + $ANSIBLE_VAULT;1.1;AES256 + 35643631346235373937636439656363363663633337643063343037383861396164666535306664 + 6231343735666363336361346330323133613836373431610a393638643830623764323434333161 + 63626663386639333464633562376437393335306334613733396239366436323738353435653464 + 3338363837336132320a636337623661643930386262376631356364326331666261313634376331 + 34646334353837383363643364326663393264333433303262383463616361373732333063643337 + 3736393034623738633134313664353135623138326230643761 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 130e91f..0000000 --- a/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -ansible==2.9.6 diff --git a/sbin/encrypt.sh b/sbin/encrypt.sh deleted file mode 100755 index d328761..0000000 --- a/sbin/encrypt.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -set -eu -o pipefail - -# Usage -# ./encrypt.sh mysecretname mysecretvalue - -declare name="$1" -declare secret="$2" - -ansible-vault \ - encrypt_string \ - --vault-password-file ansible/.vault.sh \ - --name "$name" \ - "$secret"