Skip to content

Commit 1b92183

Browse files
committed
fix formatting
make format Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
1 parent a168712 commit 1b92183

File tree

4 files changed

+22
-24
lines changed

4 files changed

+22
-24
lines changed

roles/cluster_config/meta/argument_specs.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1+
---
12
argument_specs:
2-
33
main:
44
short_description: Configure HyperCore cluster
55
description:
6-
- Role cluster_config can be used to
7-
fully configure a new HyperCore server,
8-
or partially reconfigure an existing HyperCore server.
6+
- Role cluster_config can be used to fully configure a new HyperCore server, or partially reconfigure an existing HyperCore server.
97
options:
108
scale_computing_hypercore_cluster_config:
119
description:
1210
- A dict describing a full or partial cluster configuration.
13-
- Partial configuration will be used if some of the keys
14-
in `scale_computing_hypercore_cluster_config` are omitted.
11+
- Partial configuration will be used if some of the keys in `scale_computing_hypercore_cluster_config` are omitted.
1512
required: true
1613
type: dict
1714
options:
@@ -105,7 +102,7 @@ argument_specs:
105102
- If missing, cluster time zone will not be changed.
106103
- See also M(scale_computing.hypercore.time_zone).
107104
required: false
108-
type: str # choices:
105+
type: str # choices:
109106
smtp:
110107
description:
111108
- Cluster SMTP server configuration.

roles/version_update_single_node/meta/argument_specs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
argument_specs:
23
main:
34
short_description: Update single-node systems

roles/version_update_single_node/tasks/shutdown_vms.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
when: item.power_state == 'started'
1414
loop: "{{ vms.records }}"
1515
register: vm_shutdown_result
16-
ignore_errors: true # if VMs fail to shut down without force, error will occur, so we skip and try on to shut down with force
16+
ignore_errors: true # if VMs fail to shut down without force, error will occur, so we skip and try on to shut down with force
1717

1818
# Wait up to 300 sec (30*10)
1919
- name: Wait until VMs shutdown

roles/version_update_single_node/tasks/wait_vm_shutdown.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@
99
ansible.builtin.debug:
1010
msg: Unique VM power states {{ version_update_vms.records | map(attribute='power_state') | unique }}
1111

12-
# HyperCore states
13-
# RUNNING Currently running
14-
# BLOCKED Blocked on a resource
15-
# PAUSED Paused by the user
16-
# SHUTDOWN Shutting down
17-
# SHUTOFF Shut off
18-
# CRASHED Crashed
19-
# In ansible we have power_state (see FROM_HYPERCORE_TO_ANSIBLE_POWER_STATE):
20-
# RUNNING="started",
21-
# SHUTOFF="stopped",
22-
# BLOCKED="blocked",
23-
# PAUSED="paused",
24-
# SHUTDOWN="shutdown",
25-
# CRASHED="crashed",
26-
# Do not include 'shutdown' - it means "shutting_down"
27-
# States paused, blocked - might be safe to include, might not. Do not include yet.
12+
# HyperCore states
13+
# RUNNING Currently running
14+
# BLOCKED Blocked on a resource
15+
# PAUSED Paused by the user
16+
# SHUTDOWN Shutting down
17+
# SHUTOFF Shut off
18+
# CRASHED Crashed
19+
# In ansible we have power_state (see FROM_HYPERCORE_TO_ANSIBLE_POWER_STATE):
20+
# RUNNING="started",
21+
# SHUTOFF="stopped",
22+
# BLOCKED="blocked",
23+
# PAUSED="paused",
24+
# SHUTDOWN="shutdown",
25+
# CRASHED="crashed",
26+
# Do not include 'shutdown' - it means "shutting_down"
27+
# States paused, blocked - might be safe to include, might not. Do not include yet.
2828
- name: Set fact version_update_all_vms_stopped
2929
ansible.builtin.set_fact:
3030
version_update_all_vms_stopped: |

0 commit comments

Comments
 (0)