Biser Milanov | 864364e | 2023-05-12 17:16:46 +0300 | [diff] [blame] | 1 | - hosts: tempest |
Biser Milanov | 94d3fc1 | 2023-06-07 11:00:26 +0300 | [diff] [blame] | 2 | vars: |
| 3 | homedir: "{{ ansible_env.HOME }}" |
Peter Pentchev | 251b1f5 | 2022-11-18 10:52:30 +0200 | [diff] [blame] | 4 | tasks: |
Peter Pentchev | 1e7ec64 | 2022-11-22 14:25:21 +0200 | [diff] [blame] | 5 | - name: sp-examine-pwd |
| 6 | shell: |
| 7 | cmd: pwd |
| 8 | |
Biser Milanov | 70965da | 2023-06-07 10:25:35 +0300 | [diff] [blame] | 9 | - name: sp-examine-ls-homedir |
Peter Pentchev | 1e7ec64 | 2022-11-22 14:25:21 +0200 | [diff] [blame] | 10 | shell: |
Biser Milanov | 70965da | 2023-06-07 10:25:35 +0300 | [diff] [blame] | 11 | cmd: ls -l {{ homedir }} |
Peter Pentchev | 1e7ec64 | 2022-11-22 14:25:21 +0200 | [diff] [blame] | 12 | |
Biser Milanov | 70965da | 2023-06-07 10:25:35 +0300 | [diff] [blame] | 13 | - name: sp-examine-ls-homedir-src |
Peter Pentchev | 1e7ec64 | 2022-11-22 14:25:21 +0200 | [diff] [blame] | 14 | shell: |
Biser Milanov | 70965da | 2023-06-07 10:25:35 +0300 | [diff] [blame] | 15 | cmd: ls -l {{ homedir }}/src |
Peter Pentchev | 1e7ec64 | 2022-11-22 14:25:21 +0200 | [diff] [blame] | 16 | |
Biser Milanov | 70965da | 2023-06-07 10:25:35 +0300 | [diff] [blame] | 17 | - name: sp-examine-ls-homedir/src/spfactory.storpool.com |
Peter Pentchev | 1e7ec64 | 2022-11-22 14:25:21 +0200 | [diff] [blame] | 18 | shell: |
Biser Milanov | 70965da | 2023-06-07 10:25:35 +0300 | [diff] [blame] | 19 | cmd: ls -l {{ homedir }}/src/spfactory.storpool.com |
Peter Pentchev | 1e7ec64 | 2022-11-22 14:25:21 +0200 | [diff] [blame] | 20 | |
Peter Pentchev | 251b1f5 | 2022-11-18 10:52:30 +0200 | [diff] [blame] | 21 | - name: Apply the StorPool patches |
| 22 | shell: |
Biser Milanov | 70965da | 2023-06-07 10:25:35 +0300 | [diff] [blame] | 23 | 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" |
Peter Pentchev | 4bd0dd1 | 2023-01-13 11:35:00 +0200 | [diff] [blame] | 24 | chdir: /opt/stack |
| 25 | when: sp_experimental is not defined or not sp_experimental |
| 26 | become: true |
| 27 | become_user: stack |
| 28 | |
| 29 | - name: Apply the StorPool experimental patches |
| 30 | shell: |
Biser Milanov | 70965da | 2023-06-07 10:25:35 +0300 | [diff] [blame] | 31 | 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" |
Peter Pentchev | 251b1f5 | 2022-11-18 10:52:30 +0200 | [diff] [blame] | 32 | chdir: /opt/stack |
Peter Pentchev | 4bd0dd1 | 2023-01-13 11:35:00 +0200 | [diff] [blame] | 33 | when: sp_experimental is defined and sp_experimental |
Peter Pentchev | 251b1f5 | 2022-11-18 10:52:30 +0200 | [diff] [blame] | 34 | become: true |
| 35 | become_user: stack |
| 36 | |
| 37 | - name: Apply the StorPool patches to the other place |
| 38 | shell: |
Biser Milanov | 70965da | 2023-06-07 10:25:35 +0300 | [diff] [blame] | 39 | cmd: "{{ homedir }}/src/spfactory.storpool.com/sp-osci/tools/bin/git-if-needed -s {{ homedir }}/src/spfactory.storpool.com/sp-osci/patches/series am" |
| 40 | chdir: "{{ homedir }}/src/opendev.org" |
Peter Pentchev | 4bd0dd1 | 2023-01-13 11:35:00 +0200 | [diff] [blame] | 41 | when: sp_experimental is not defined or not sp_experimental |
| 42 | |
| 43 | - name: Apply the StorPool experimental patches to the other place |
| 44 | shell: |
Biser Milanov | 70965da | 2023-06-07 10:25:35 +0300 | [diff] [blame] | 45 | 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" |
| 46 | chdir: "{{ homedir }}/src/opendev.org" |
Peter Pentchev | 4bd0dd1 | 2023-01-13 11:35:00 +0200 | [diff] [blame] | 47 | when: sp_experimental is defined and sp_experimental |
Peter Pentchev | 251b1f5 | 2022-11-18 10:52:30 +0200 | [diff] [blame] | 48 | |
| 49 | # - name: Set up the random StorPool volume prefix |
| 50 | # shell: |
Biser Milanov | 70965da | 2023-06-07 10:25:35 +0300 | [diff] [blame] | 51 | # cmd: "{{ homedir }}/src/spfactory.storpool.com/sp-osci/tools/bin/sp_rand_init" |
Peter Pentchev | 251b1f5 | 2022-11-18 10:52:30 +0200 | [diff] [blame] | 52 | # become: true |
| 53 | |
Peter Pentchev | 7b8acdc | 2022-11-11 11:32:02 +0200 | [diff] [blame] | 54 | - hosts: all |
| 55 | tasks: |
Peter Pentchev | 1a318ae | 2022-11-11 11:24:39 +0200 | [diff] [blame] | 56 | - name: sp-processes |
| 57 | shell: |
| 58 | cmd: ps awwfux |