-
Notifications
You must be signed in to change notification settings - Fork 0
/
07_optional_license_cluster.yaml
61 lines (51 loc) · 1.3 KB
/
07_optional_license_cluster.yaml
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
- hosts: registryservices[0]
vars_files:
- vars/ansible-vars
become: yes
tasks:
- name: Prepare temporary license file
template:
src: templates/license.txt.jinja2
dest: "/tmp/qlicense.txt"
- name: Get Quobyte session
shell:
cmd: qmgmt -u {{ api_service }} user login {{ admin_user }} {{admin_password }}
- name: Import Quobyte license from file
shell:
cmd: qmgmt -u {{ api_service }} license import /tmp/qlicense.txt
- name: Remove temporary license file
file:
state: absent
dest: "/tmp/qlicense.txt"
- hosts: registryservices
become: yes
serial: 1
tasks:
- name: Restart Quobyte registry services
service:
state: restarted
name: quobyte-registry
- hosts: apiservices
become: yes
serial: 1
tasks:
- name: Restart Quobyte api services
service:
state: restarted
name: quobyte-api
- hosts: webconsoleservices
become: yes
serial: 1
tasks:
- name: Restart Quobyte webconsole services
service:
state: restarted
name: quobyte-webconsole
- hosts: metadataservices
become: yes
serial: 1
tasks:
- name: Restart Quobyte metadata services
service:
state: restarted
name: quobyte-metadata