blob: 274c22b88f30b3a1d349fc867a0a9c638efde24b [file] [log] [blame]
Peter Pentchev8e3d2952022-11-10 18:31:17 +02001- hosts: all
2 tasks:
3 - name: sp-whoami-hostname
4 shell:
5 cmd: hostname
6
7 - name: sp-whoami-id
8 shell:
9 cmd: id
10
11 - name: sp-whereami-pwd
12 shell:
13 cmd: pwd
Peter Pentchev1a318ae2022-11-11 11:24:39 +020014
15 - name: sp-dump-ansible-facts
16 ansible.builtin.debug:
17 var: hostvars
18
Peter Pentchev7b8acdc2022-11-11 11:32:02 +020019- hosts: localhost
20 connection: local
Peter Pentchevafc36372022-11-15 12:22:05 +020021 vars:
22 host_id: "{{ hostvars['tempest']['nodepool']['external_id'] }}"
23 storprep_filename: "/tmp/storprep-bootstrap-{{ host_id }}.sh"
Peter Pentchev7b8acdc2022-11-11 11:32:02 +020024 tasks:
Peter Pentchev18f67c62022-11-14 14:09:09 +020025 - name: ctrl-sp-whoami-hostname
26 shell:
Peter Pentchev03989dd2022-11-15 10:35:42 +020027 cmd: hostname || true
Peter Pentchev18f67c62022-11-14 14:09:09 +020028
Peter Pentchevff460a52022-11-15 11:47:40 +020029 - name: ctrl-sp-fetch-storprep
Peter Pentchev18f67c62022-11-14 14:09:09 +020030 shell:
Peter Pentchevafc36372022-11-15 12:22:05 +020031 cmd: curl -C - -o '{{ storprep_filename }}' -- https://spfactory.storpool.com/sp-osci/storprep-bootstrap-sh.txt
Peter Pentchev18f67c62022-11-14 14:09:09 +020032
Peter Pentchevff460a52022-11-15 11:47:40 +020033 - name: ctrl-sp-run-storprep
Peter Pentchev18f67c62022-11-14 14:09:09 +020034 shell:
Peter Pentchevafc36372022-11-15 12:22:05 +020035 cmd: sh '{{ storprep_filename }}' -- -n lab-charmed-testing-storage -s lab-vlan400 -- {{ host_id }}
36
37 - name: ctrl-sp-rm-storprep
38 shell:
39 cmd: rm -- '{{ storprep_filename }}'
Peter Pentchev1a318ae2022-11-11 11:24:39 +020040
Peter Pentchev7b8acdc2022-11-11 11:32:02 +020041- hosts: all
42 tasks:
Peter Pentchev1a318ae2022-11-11 11:24:39 +020043 - name: sp-processes
44 shell:
45 cmd: ps awwfux
46
47 - name: sp-processes-pstree
48 shell:
49 cmd: pstree -l