Compare commits

..

2 Commits

8 changed files with 31 additions and 13 deletions

View File

@ -5,9 +5,15 @@
become_user: root
gather_facts: yes
tasks:
- name: set PVC maintenance mode
- name: set PVC maintenance mode (legacy)
command: pvc maintenance on
run_once: yes
ignore_errors: yes
- name: set PVC maintenance mode
command: pvc cluster maintenance on
run_once: yes
ignore_errors: yes
- hosts: all
remote_user: deploy
@ -160,5 +166,5 @@
gather_facts: yes
tasks:
- name: unset PVC maintenance mode
command: pvc maintenance off
command: pvc cluster maintenance off
run_once: yes

View File

@ -5,9 +5,15 @@
become_user: root
gather_facts: yes
tasks:
- name: set PVC maintenance mode
- name: set PVC maintenance mode (legacy)
command: pvc maintenance on
run_once: yes
ignore_errors: yes
- name: set PVC maintenance mode
command: pvc cluster maintenance on
run_once: yes
ignore_errors: yes
- hosts: all
remote_user: deploy
@ -216,5 +222,5 @@
gather_facts: yes
tasks:
- name: unset PVC maintenance mode
command: pvc maintenance off
command: pvc cluster maintenance off
run_once: yes

View File

@ -5,9 +5,15 @@
become_user: root
gather_facts: yes
tasks:
- name: set PVC maintenance mode
- name: set PVC maintenance mode (legacy)
command: pvc maintenance on
run_once: yes
ignore_errors: yes
- name: set PVC maintenance mode
command: pvc cluster maintenance on
run_once: yes
ignore_errors: yes
- hosts: all
remote_user: deploy
@ -89,5 +95,5 @@
gather_facts: yes
tasks:
- name: unset PVC maintenance mode
command: pvc maintenance off
command: pvc cluster maintenance off
run_once: yes

View File

@ -7,7 +7,7 @@
serial: 1
tasks:
- name: set PVC maintenance mode
command: pvc maintenance on
command: pvc cluster maintenance on
- name: secondary node
command: "pvc node secondary {{ ansible_hostname }}"
@ -216,7 +216,7 @@
connection: local
- name: unset PVC maintenance mode
command: pvc maintenance off
command: pvc cluster maintenance off
- hosts: all
remote_user: deploy

View File

@ -19,7 +19,7 @@
when: ansible_lsb.codename is defined
- name: set PVC maintenance mode
command: pvc maintenance on
command: pvc cluster maintenance on
- name: secondary node
command: "pvc node secondary {{ ansible_hostname }}"
@ -240,7 +240,7 @@
connection: local
- name: unset PVC maintenance mode
command: pvc maintenance off
command: pvc cluster maintenance off
- hosts: all
remote_user: deploy

View File

@ -4,6 +4,6 @@
# {{ ansible_managed }}
echo
pvc -q status -f short
pvc -q cluster status -f short
echo
pvc -q node list

View File

@ -16,7 +16,7 @@
seconds: 5
- name: initialize a fresh PVC cluster
command: pvc -c local task init -y
command: pvc -c local cluster init -y
- name: wait 5s for cluster to stabilize
pause:

View File

@ -4,4 +4,4 @@
# {{ ansible_managed }}
echo "<<<pvc>>>"
pvc status --format json
pvc cluster status --format json