Skip to content

Commit

Permalink
Merge pull request #10 from jproque-dell/patch-1-jp
Browse files Browse the repository at this point in the history
Adding check to verify if Powerflex is already installed prior to lau…
  • Loading branch information
gaelrehault authored Jan 22, 2021
2 parents 66f52a0 + af1bebb commit 8633fbd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
4 changes: 4 additions & 0 deletions powerflex-ansible/roles/powerflex-facts/tasks/facts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@
- name: Set the spare policy based upon SDSs count
set_fact:
spare_policy_pct: "{{ ((100 / sds_count | int) | round) | int }}"

- name: Check installed RPMS
package_facts:
manager: auto
19 changes: 10 additions & 9 deletions powerflex-ansible/site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,44 +29,45 @@
gather_facts: no
become: true
roles:
- powerflex-mdm
- { role: "powerflex-mdm", when: "'EMC-ScaleIO-mdm' not in ansible_facts.packages" }
tags: powerflex-mdm

- hosts: tbs
name: "Install PowerFlex TB"
gather_facts: no
become: true
roles:
- powerflex-tb
- { role: "powerflex-tb", when: "'EMC-ScaleIO-mdm' not in ansible_facts.packages" }
tags: powerflex-tb

- hosts: mdms
name: "Configure PowerFlex storage"
gather_facts: no
roles:
- powerflex-config
- { role: "powerflex-config", when: "'EMC-ScaleIO-mdm' not in ansible_facts.packages" }
tags: powerflex-config

- hosts: sdss
name: "Install PowerFlex SDS"
gather_facts: no
become: true
roles:
- powerflex-sds
- { role: "powerflex-sds", when: "'EMC-ScaleIO-sds' not in ansible_facts.packages" }
tags: powerflex-sds

- hosts: all
name: "Install PowerFlex LIA"
gather_facts: no
become: true
roles:
- powerflex-lia
roles:
- { role: "powerflex-lia", when: "'EMC-ScaleIO-lia' not in ansible_facts.packages" }
tags: powerflex-lia

- hosts: sdcs
name: "Install PowerFlex SDC"
gather_facts: no
become: true
roles:
- powerflex-sdc
- { role: "powerflex-sdc", when: "'EMC-ScaleIO-sdc' not in ansible_facts.packages" }
tags: powerflex-sdc

0 comments on commit 8633fbd

Please sign in to comment.