| - hosts: localhost |
| connection: local |
| vars: |
| host_id: "{{ hostvars['controller']['nodepool']['external_id'] }}" |
| storprep_filename: "/tmp/storprep-bootstrap-{{ host_id }}.sh" |
| tasks: |
| - name: ctrl-sp-whoami-hostname |
| shell: |
| cmd: hostname || true |
| |
| - name: ctrl-sp-fetch-storprep |
| shell: |
| cmd: curl -C - -o '{{ storprep_filename }}' -- https://spfactory.storpool.com/sp-osci/storprep-bootstrap-sh.txt |
| |
| - name: ctrl-sp-run-storprep |
| shell: |
| cmd: sh '{{ storprep_filename }}' -- -n lab-charmed-testing-storage -s lab-vlan400 -- {{ host_id }} |
| |
| - name: ctrl-sp-rm-storprep |
| shell: |
| cmd: rm -- '{{ storprep_filename }}' |
| |
| - name: ctrl-sp-processes |
| shell: |
| cmd: ps awwfux |
| |
| - hosts: all |
| tasks: |
| - name: sp-examine-pwd |
| shell: |
| cmd: pwd |
| |
| - name: sp-examine-ls-zuul |
| shell: |
| cmd: ls -l /home/zuul |
| |
| - name: sp-examine-ls-zuul-src |
| shell: |
| cmd: ls -l /home/zuul/src |
| |
| - name: sp-examine-ls-zuul/src/spfactory.storpool.com |
| shell: |
| cmd: ls -l /home/zuul/src/spfactory.storpool.com |
| |
| - name: Apply the StorPool patches |
| shell: |
| 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 |
| chdir: /opt/stack |
| become: true |
| become_user: stack |
| |
| - name: Apply the StorPool patches to the other place |
| shell: |
| 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 |
| chdir: /home/zuul/src/opendev.org |
| |
| # - name: Set up the random StorPool volume prefix |
| # shell: |
| # cmd: /home/zuul/src/spfactory.storpool.com/sp-osci/tools/bin/sp_rand_init |
| # become: true |
| |
| - hosts: all |
| tasks: |
| - name: sp-processes |
| shell: |
| cmd: ps awwfux |