Move to v2 packaging format
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Luke Murphy 2020-04-14 11:00:56 +02:00
parent 9676726beb
commit bfba28d162
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
18 changed files with 29 additions and 174 deletions

View File

@ -2,9 +2,6 @@
[![Build Status](https://drone.autonomic.zone/api/badges/autonomic-cooperative/minio/status.svg)](https://drone.autonomic.zone/autonomic-cooperative/minio) [![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 > https://minio.autonomic.zone
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/)

View File

@ -1,5 +0,0 @@
#!/bin/bash
set -eu -o pipefail
echo $(pass show hosts/autonomic-minio/vault/password)

View File

@ -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

View File

@ -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 }}"

View File

@ -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

View File

@ -1,4 +0,0 @@
---
autonomic_admin_mail: "helo@autonomic.zone"
domain: "minio.autonomic.zone"
http_port: "9000"

View File

@ -1,8 +0,0 @@
---
ansible_become_pass: !vault |
$ANSIBLE_VAULT;1.1;AES256
36333131306565373732623438663266643933396630666665316465336162313237326464316137
3064373965633062333438353738373634643130663030350a373532306239336633346631656561
36616135366163363563343963383533303433636535646239373861306631616139656334346631
3534653139386566630a663761633661373631623933343566656330333135616631353131646536
33626637393339363733326464646163616666666362623866623536303764626638

View File

@ -1,9 +0,0 @@
---
minio_access_key: !vault |
$ANSIBLE_VAULT;1.1;AES256
31323830666263323334613235333630343533353533376232316132653665623162383539396465
3538343733346230363332373865396139323130396466310a663137303563626532383339396465
31333236643765366435323336323962316235653636613133313263376163303532376261613137
6132333963346337370a393761346666643530663639376635356163313665366161336336333765
36316438386366323463333761623264386231386164366130386231353362353565323131313462
6130353137623033396333373365653939333835653630356135

View File

@ -1,9 +0,0 @@
---
minio_secret_key: !vault |
$ANSIBLE_VAULT;1.1;AES256
37313863613633623332646130386238633938663439366533383836363433313730306664316265
3365363330333865333461363034343862303966353637310a323435313037646234616566643565
38666465626137333731386330613666336335633230616135316532386434323761313765393235
6230633066363636300a383964356634623966336666646466306133356630643033613934396635
31336566366337373739336339613735316132323434663930376133383638383538353463383039
3233313333386333396566636138366336633532356637303461

View File

@ -1,5 +0,0 @@
{
"name": "minio",
"description": "High Performance, Kubernetes-Friendly Object Storage",
"repository": "https://git.autonomic.zone/autonomic-cooperative/minio"
}

9
deploy.d/config.yml Normal file
View File

@ -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 }}"

View File

@ -0,0 +1,9 @@
---
minio_access_key: !vault |-
$ANSIBLE_VAULT;1.1;AES256
32383433363138666363336361393662636164383833313364313966393864383866333563613239
3633643865306164353363343436383134616234323562650a336532393730313265366365336166
37636335366262623831373565643766303135356561363034623237616138303638623337663633
3062383261323935350a633065346435656135393832373663373539376535666363343062306563
30356565633739383966633063346565336261323761656630373166633633633331373364373761
6438336639383230653431313835656331613861333066313337

View File

@ -0,0 +1,9 @@
---
minio_secret_key: !vault |-
$ANSIBLE_VAULT;1.1;AES256
35643631346235373937636439656363363663633337643063343037383861396164666535306664
6231343735666363336361346330323133613836373431610a393638643830623764323434333161
63626663386639333464633562376437393335306334613733396239366436323738353435653464
3338363837336132320a636337623661643930386262376631356364326331666261313634376331
34646334353837383363643364326663393264333433303262383463616361373732333063643337
3736393034623738633134313664353135623138326230643761

View File

@ -1 +0,0 @@
ansible==2.9.6

View File

@ -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"