-
Notifications
You must be signed in to change notification settings - Fork 269
/
etcd.yml
executable file
·50 lines (49 loc) · 1.62 KB
/
etcd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env ansible-playbook
---
#==============================================================#
# File : etcd.yml
# Desc : init etcd on special group etcd
# Ctime : 2022-11-10
# Mtime : 2023-09-30
# Path : etcd.yml
# License : AGPLv3 @ https://pigsty.io/docs/about/license
# Copyright : 2018-2024 Ruohang Feng / Vonng ([email protected])
#==============================================================#
- name: ETCD INIT
hosts: etcd
gather_facts: no
become: yes
roles:
- { role: node_id , tags: id }
- { role: etcd }
#---------------------------------------------------------------
# Usage
#---------------------------------------------------------------
# 1. make sure etcd is defined
#
# etcd:
# hosts:
# 10.10.10.10: { etcd_seq: 1 }
# 10.10.10.11: { etcd_seq: 2 }
# 10.10.10.12: { etcd_seq: 3 }
# vars:
# etcd_cluster: etcd
#
# 2. Run playbook: ./etcd.yml -l etcd
#
#---------------------------------------------------------------
# Tasks
#---------------------------------------------------------------
# etcd_assert : generate minio identity
# etcd_install : install etcd rpm packages
# etcd_clean : cleanup existing etcd
# - etcd_check : check etcd instance is running
# - etcd_purge : remove running etcd instance & data
# etcd_dir : create etcd data & conf dir
# etcd_config : generate etcd config
# - etcd_conf : generate etcd main config
# - etcd_cert : generate etcd ssl cert
# etcd_launch : launch etcd service
# etcd_register : register etcd to prometheus
#---------------------------------------------------------------
...