-
Notifications
You must be signed in to change notification settings - Fork 6
/
test_setup.unmanage.yml
81 lines (66 loc) · 2.02 KB
/
test_setup.unmanage.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
# This is an example of a ansible playbook to uninstall Tendrl according to Red Hat Gluster Storage Monitoring Guide
# https://access.redhat.com/documentation/en-us/red_hat_gluster_storage/3.3/html/monitoring_guide/cluster_expansion#unmanaging_cluster
#
#
# The playbook expects inventory file with the following groups:
#
# * tendrl-server: a single machine where Tendrl Server (management console) is
# installed
# * gluster-servers: gluster storage servers (machines with bricks)
# Stop individual services on the Storage Nodes
- hosts: gluster_servers
user: root
tasks:
- name: Stop tendrl-node-agent service
service:
name: tendrl-node-agent
state: stopped
- name: Stop collectd service
service:
name: collectd
state: stopped
- name: Stop tendrl-gluster-integration service
service:
name: tendrl-gluster-integration
state: stopped
# Stop individual services on the Tendrl server
- hosts: tendrl_server
user: root
tasks:
- name: Stop etcd service
service:
name: etcd
state: stopped
- name: Stop tendrl-monitoring-integration service
service:
name: tendrl-monitoring-integration
state: stopped
- name: Stop tendrl-api service
service:
name: tendrl-api
state: stopped
- name: Stop tendrl-notifier service
service:
name: tendrl-notifier
state: stopped
- name: Stop carbon-cache service
service:
name: carbon-cache
state: stopped
- name: Stop grafana-server service
service:
name: grafana-server
state: stopped
- name: Stop tendrl-node-agent service
service:
name: tendrl-node-agent
state: stopped
- name: Remove Carbon files
shell: /bin/rm -rf /var/lib/carbon/whisper/*
- name: Remove Etcd files
shell: /bin/rm -rf /var/lib/etcd/*
- name: Remove Grafana files
file:
path: /var/lib/grafana/grafana.db
state: absent