mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-25 22:18:53 +07:00
Remove minio tfstate
This commit is contained in:
parent
4898d18202
commit
0bbb87169f
@ -65,5 +65,4 @@ make apps
|
||||
- [Kubernetes on LXD issue with BTRFS](https://medium.com/@ernstae/kubenetes-on-lxd-with-rancher-2-0-part-one-and-a-half-94e6e03f4f2e)
|
||||
- [LXD container profile for Kubernetes](https://github.com/justmeandopensource/kubernetes/blob/master/lxd-provisioning/k8s-profile-config)
|
||||
- [Make LXD containers get IP addresses from LAN](https://blog.simos.info/how-to-make-your-lxd-container-get-ip-addresses-from-your-lan/)
|
||||
- [Minio Ansible role](https://github.com/atosatto/ansible-minio)
|
||||
- [Some device mount for Kubernetes on LXD](https://github.com/atosatto/ansible-minio)
|
||||
- [Some device mount for Kubernetes on LXD](https://sleeplessbeastie.eu/2020/10/07/how-to-install-kubernetes-on-lxd/)
|
||||
|
@ -1,43 +0,0 @@
|
||||
- name: Create a tfstate container
|
||||
delegate_to: localhost
|
||||
lxd_container:
|
||||
name: tfstate
|
||||
state: started
|
||||
source:
|
||||
type: image
|
||||
mode: pull
|
||||
server: https://images.linuxcontainers.org
|
||||
alias: ubuntu/focal/amd64
|
||||
wait_for_ipv4_addresses: yes
|
||||
url: "https://{{ hostvars[groups['metal'][0]]['ansible_host'] }}:8443"
|
||||
|
||||
- name: Download minio
|
||||
delegate_to: tfstate
|
||||
get_url:
|
||||
url: https://dl.min.io/server/minio/release/linux-amd64/minio
|
||||
dest: /usr/bin/minio
|
||||
mode: 0755
|
||||
|
||||
- name: Generate minio config file
|
||||
delegate_to: tfstate
|
||||
template:
|
||||
src: minio.env.j2
|
||||
dest: /etc/default/minio
|
||||
|
||||
- name: Generate minio service file
|
||||
delegate_to: tfstate
|
||||
template:
|
||||
src: minio.service.j2
|
||||
dest: /etc/systemd/system/minio.service
|
||||
|
||||
- name: Enable and start the Minio service
|
||||
delegate_to: tfstate
|
||||
service:
|
||||
name: minio
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
# - name: Start minio
|
||||
# template:
|
||||
# src: etcd.j2
|
||||
# dest: /etc/default/etcd
|
@ -1,2 +0,0 @@
|
||||
MINIO_ROOT_USER=admin
|
||||
MINIO_ROOT_PASSWORD=password
|
@ -1,9 +0,0 @@
|
||||
[Unit]
|
||||
Description=Minio
|
||||
StartLimitIntervalSec=60
|
||||
StartLimitBurst=5
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=/etc/default/minio
|
||||
ExecStart=/usr/bin/minio server server /var/lib/minio/
|
||||
Restart=always
|
Loading…
Reference in New Issue
Block a user