Verified Commit bcc078f0 authored by Hugo's avatar Hugo
Browse files

taskfile + readme

parent da98c160
......@@ -5,4 +5,6 @@ terraform.tfstate.d
values.auto.tfvars
k0sctl.yaml
kubeconfig
*.log
\ No newline at end of file
*.log
.env
log
......@@ -8,7 +8,31 @@ Ada Lovelace cluster IaC
- ansible
- python
```shell
$ ansible-galaxy install -r requirements.yaml
$ pip3 install openshift
```
ansible-galaxy install -r requirements.yaml
pip3 install openshift
## Usage
Set env vars:
```shell
$ export HCLOUD_TOKEN=
$ export ENV=
```
Run :
```shell
$ ansible-playbook playbook.yaml
```
## Tasks
You can also just add the env vars in a `.env` file and run :
```shell
$ task install
$ task apply
```
version: "3"
dotenv: [".env"]
tasks:
default:
cmds:
- task -l
silent: true
install:
desc: Install dependancies.
cmds:
- ansible-galaxy install -r requirements.yaml
- pip3 install openshift
apply:
desc: Apply the configuration.
cmds:
- ansible-playbook playbook.yaml
minio:
desc: Install minio & deploy a tenant.
cmds:
- kubectl minio init
- cmd: kubectl create ns minio1
ignore_error: true
- kubectl minio tenant create minio1 --servers 4 --volumes 4 --capacity 40Gi --namespace minio1 --storage-class local-storage
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment