| - hosts: tempest |
| vars: |
| homedir: "{{ ansible_env.HOME }}" |
| tasks: |
| - name: sp-examine-pwd |
| shell: |
| cmd: pwd |
| |
| - name: sp-examine-ls-homedir |
| shell: |
| cmd: ls -l {{ homedir }} |
| |
| - name: sp-examine-ls-homedir-src |
| shell: |
| cmd: ls -l {{ homedir }}/src |
| |
| - name: sp-examine-ls-homedir/src/spfactory.storpool.com |
| shell: |
| cmd: ls -l {{ homedir }}/src/spfactory.storpool.com |
| |
| - name: Apply the StorPool patches |
| shell: |
| cmd: "{{ homedir }}/src/spfactory.storpool.com/sp-osci/tools/bin/git-if-needed -s {{ homedir }}/src/spfactory.storpool.com/sp-osci/patches/series -S am" |
| chdir: /opt/stack |
| when: sp_experimental is not defined or not sp_experimental |
| become: true |
| become_user: stack |
| |
| - name: Apply the StorPool experimental patches |
| shell: |
| cmd: "{{ homedir }}/src/spfactory.storpool.com/sp-osci/tools/bin/git-if-needed -s {{ homedir }}/src/spfactory.storpool.com/sp-osci/patches/series.experimental -S am" |
| chdir: /opt/stack |
| when: sp_experimental is defined and sp_experimental |
| become: true |
| become_user: stack |
| |
| - name: Apply the StorPool patches to the other place |
| shell: |
| cmd: "{{ homedir }}/src/spfactory.storpool.com/sp-osci/tools/bin/git-if-needed -s {{ homedir }}/src/spfactory.storpool.com/sp-osci/patches/series am" |
| chdir: "{{ homedir }}/src/opendev.org" |
| when: sp_experimental is not defined or not sp_experimental |
| |
| - name: Apply the StorPool experimental patches to the other place |
| shell: |
| cmd: "{{ homedir }}/src/spfactory.storpool.com/sp-osci/tools/bin/git-if-needed -s {{ homedir }}/src/spfactory.storpool.com/sp-osci/patches/series.experimental am" |
| chdir: "{{ homedir }}/src/opendev.org" |
| when: sp_experimental is defined and sp_experimental |
| |
| # - name: Set up the random StorPool volume prefix |
| # shell: |
| # cmd: "{{ homedir }}/src/spfactory.storpool.com/sp-osci/tools/bin/sp_rand_init" |
| # become: true |
| |
| - hosts: all |
| tasks: |
| - name: sp-processes |
| shell: |
| cmd: ps awwfux |