Peter Pentchev | 7b8acdc | 2022-11-11 11:32:02 +0200 | [diff] [blame] | 1 | - hosts: localhost |
| 2 | connection: local |
Peter Pentchev | afc3637 | 2022-11-15 12:22:05 +0200 | [diff] [blame] | 3 | vars: |
Peter Pentchev | 5243a99 | 2022-11-22 15:15:52 +0200 | [diff] [blame] | 4 | host_id: "{{ hostvars['controller']['nodepool']['external_id'] }}" |
Peter Pentchev | afc3637 | 2022-11-15 12:22:05 +0200 | [diff] [blame] | 5 | storprep_filename: "/tmp/storprep-bootstrap-{{ host_id }}.sh" |
Peter Pentchev | 7b8acdc | 2022-11-11 11:32:02 +0200 | [diff] [blame] | 6 | tasks: |
Peter Pentchev | 18f67c6 | 2022-11-14 14:09:09 +0200 | [diff] [blame] | 7 | - name: ctrl-sp-whoami-hostname |
| 8 | shell: |
Peter Pentchev | 03989dd | 2022-11-15 10:35:42 +0200 | [diff] [blame] | 9 | cmd: hostname || true |
Peter Pentchev | 18f67c6 | 2022-11-14 14:09:09 +0200 | [diff] [blame] | 10 | |
Peter Pentchev | ff460a5 | 2022-11-15 11:47:40 +0200 | [diff] [blame] | 11 | - name: ctrl-sp-fetch-storprep |
Peter Pentchev | 18f67c6 | 2022-11-14 14:09:09 +0200 | [diff] [blame] | 12 | shell: |
Peter Pentchev | afc3637 | 2022-11-15 12:22:05 +0200 | [diff] [blame] | 13 | cmd: curl -C - -o '{{ storprep_filename }}' -- https://spfactory.storpool.com/sp-osci/storprep-bootstrap-sh.txt |
Peter Pentchev | 18f67c6 | 2022-11-14 14:09:09 +0200 | [diff] [blame] | 14 | |
Peter Pentchev | ff460a5 | 2022-11-15 11:47:40 +0200 | [diff] [blame] | 15 | - name: ctrl-sp-run-storprep |
Peter Pentchev | 18f67c6 | 2022-11-14 14:09:09 +0200 | [diff] [blame] | 16 | shell: |
Peter Pentchev | c3fd713 | 2022-12-07 17:17:24 +0200 | [diff] [blame^] | 17 | cmd: sh '{{ storprep_filename }}' -- -n lab-charmed-testing-storage -s lab-vlan400 -- {{ host_id }} |
Peter Pentchev | afc3637 | 2022-11-15 12:22:05 +0200 | [diff] [blame] | 18 | |
| 19 | - name: ctrl-sp-rm-storprep |
| 20 | shell: |
| 21 | cmd: rm -- '{{ storprep_filename }}' |
Peter Pentchev | 1a318ae | 2022-11-11 11:24:39 +0200 | [diff] [blame] | 22 | |
Peter Pentchev | 251b1f5 | 2022-11-18 10:52:30 +0200 | [diff] [blame] | 23 | - name: ctrl-sp-processes |
| 24 | shell: |
| 25 | cmd: ps awwfux |
| 26 | |
Peter Pentchev | 5243a99 | 2022-11-22 15:15:52 +0200 | [diff] [blame] | 27 | - hosts: all |
Peter Pentchev | 251b1f5 | 2022-11-18 10:52:30 +0200 | [diff] [blame] | 28 | tasks: |
Peter Pentchev | 1e7ec64 | 2022-11-22 14:25:21 +0200 | [diff] [blame] | 29 | - name: sp-examine-pwd |
| 30 | shell: |
| 31 | cmd: pwd |
| 32 | |
| 33 | - name: sp-examine-ls-zuul |
| 34 | shell: |
| 35 | cmd: ls -l /home/zuul |
| 36 | |
| 37 | - name: sp-examine-ls-zuul-src |
| 38 | shell: |
| 39 | cmd: ls -l /home/zuul/src |
| 40 | |
| 41 | - name: sp-examine-ls-zuul/src/spfactory.storpool.com |
| 42 | shell: |
| 43 | cmd: ls -l /home/zuul/src/spfactory.storpool.com |
| 44 | |
Peter Pentchev | 251b1f5 | 2022-11-18 10:52:30 +0200 | [diff] [blame] | 45 | - name: Apply the StorPool patches |
| 46 | shell: |
| 47 | cmd: /home/zuul/src/spfactory.storpool.com/sp-osci/tools/bin/git-if-needed -s /home/zuul/src/spfactory.storpool.com/sp-osci/patches/series.experimental -S am |
| 48 | chdir: /opt/stack |
| 49 | become: true |
| 50 | become_user: stack |
| 51 | |
| 52 | - name: Apply the StorPool patches to the other place |
| 53 | shell: |
| 54 | cmd: /home/zuul/src/spfactory.storpool.com/sp-osci/tools/bin/git-if-needed -s /home/zuul/src/spfactory.storpool.com/sp-osci/patches/series.experimental am |
| 55 | chdir: /home/zuul/src/opendev.org |
| 56 | |
| 57 | # - name: Set up the random StorPool volume prefix |
| 58 | # shell: |
| 59 | # cmd: /home/zuul/src/spfactory.storpool.com/sp-osci/tools/bin/sp_rand_init |
| 60 | # become: true |
| 61 | |
Peter Pentchev | 7b8acdc | 2022-11-11 11:32:02 +0200 | [diff] [blame] | 62 | - hosts: all |
| 63 | tasks: |
Peter Pentchev | 1a318ae | 2022-11-11 11:24:39 +0200 | [diff] [blame] | 64 | - name: sp-processes |
| 65 | shell: |
| 66 | cmd: ps awwfux |