Skip to content

Commit

Permalink
Making changes to remove deprication warnings (#46)
Browse files Browse the repository at this point in the history
+ change group names to not use hyphens
+ do not use `| changed` syntax
  • Loading branch information
A-Beck authored Sep 18, 2019
1 parent 24dfbe8 commit bc94552
Show file tree
Hide file tree
Showing 14 changed files with 68 additions and 66 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.swp
*.retry
.vscode
45 changes: 23 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Performs a migration from CFME 5.7 to 5.8 utilizing steps from [Migrating to Red

#### Required groups
* cfme
* cfme-appliancees
* cfme-databases
* cfme_appliancees
* cfme_databases

#### Options
| parameter | required | default | choices | comments
Expand All @@ -35,8 +35,8 @@ Performs a migration from CFME 5.8 to 5.9 utilizing steps from [Migrating to Red

#### Required groups
* cfme
* cfme-appliancees
* cfme-databases
* cfme_appliancees
* cfme_databases

#### Options
| parameter | required | default | choices | comments
Expand All @@ -55,8 +55,8 @@ Performs a migration from CFME 5.9 to 5.10 utilizing steps from [Migrating to Re

#### Required groups
* cfme
* cfme-appliancees
* cfme-databases
* cfme_appliancees
* cfme_databases

#### Options
| parameter | required | default | choices | comments
Expand All @@ -70,8 +70,8 @@ Performs an update/upgrade of all packages on the CFME appliances and performs a

#### Required groups
* cfme
* cfme-appliancees
* cfme-databases
* cfme_appliancees
* cfme_databases

#### Options
| parameter | required | default | choices | comments
Expand All @@ -85,8 +85,8 @@ Performs an update/upgrade of all packages on all CFME appliances at the same ti

#### Required groups
* cfme
* cfme-appliancees
* cfme-databases
* cfme_appliancees
* cfme_databases

#### Options
| parameter | required | default | choices | comments
Expand All @@ -99,7 +99,7 @@ Performs an update/upgrade of all packages on all CFME appliances at the same ti
Smoke tests Service template provisioning and retirment.

#### Required groups
* cfme-ui-appliances
* cfme_ui_appliances

#### Options
| parameter | required | default | comments
Expand All @@ -118,34 +118,34 @@ Smoke tests Service template provisioning and retirment.
Start all of the DB services then all of the Appliance services.

#### Required groups
* cfme-appliancees
* cfme-databases
* cfme_appliancees
* cfme_databases

### stop-services.yml
Stop all of the Appliance services then all of the DB services.

#### Required groups
* cfme-appliancees
* cfme-databases
* cfme_appliancees
* cfme_databases

### full-stop-start-services.yml
Stop all of the Appliance services, then all of the DB services, then start all of the DB services, then all of the Appliance services, then perform a helath check.

#### Required groups
* cfme-appliancees
* cfme-databases
* cfme_appliancees
* cfme_databases

### health-check.yml
Checks the health of the Appliances.

#### Required groups
* cfme-appliancees
* cfme_appliancees

### gather-logs.yml
Gathers relevant logs from all of the appliances and puts them in an archive on the first DB host. Optionally emails the archive.

#### Required groups
* cfme-databases
* cfme_databases

#### Options
| parameter | required | default | comments
Expand Down Expand Up @@ -192,8 +192,8 @@ Changes the VMDB PostgreSQL password, updates the database.yml files, and restar
* The playbook can be run with `ansible-playbook --vault-id @prompt playbooks/change_vmdb_password.yml` to prompt for the Ansible Vault password.

#### Required groups
* cfme-appliancees
* cfme-databases
* cfme_appliancees
* cfme_databases

#### Options
| parameter | required | default | comments
Expand All @@ -205,4 +205,5 @@ Disables Medium SSL Ciphers in the CloudForms webserver configuration (/etc/http
* Addresses Tenable finding https://www.tenable.com/plugins/nessus/42873

#### Required groups
* cfme-appliancees
* cfme_appliancees

8 changes: 4 additions & 4 deletions files/inventory
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[cfme:children]
cfme-databases
cfme-appliances
cfme_databases
cfme_appliances

# All applicances which are running evmserverd including database appliances which are not standalone.
# Do not include HA / standalone databasees which are not running evmserverd here.
[cfme-appliances]
[cfme_appliances]
cfmedb01 # Application running on database appliance.
cfmeui01
cfmeui02
Expand All @@ -14,7 +14,7 @@ cfmewk03

# Any appliance with VMDB database running.
# HA / standalone or VMDB with application running too.
[cfme-databases]
[cfme_databases]
cfmedb01 # Application running on database appliance.
cfmehadb01 # HA database
cfmehadb02 # HA database
Expand Down
6 changes: 3 additions & 3 deletions playbooks/change_vmdb_password.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: CFME | Change VMDB Password | Appliances Specific Preparation
hosts: cfme-appliances
hosts: cfme_appliances
become: True
become_method: su
gather_facts: False
Expand All @@ -14,7 +14,7 @@
shell: "/var/www/miq/vmdb/tools/fix_auth.rb --databaseyml --password '{{ vmdb_password }}'"

- name: CFME | Change VMDB Password | Change PostgreSQL Password
hosts: "{{ groups['cfme-databases'][0] }}"
hosts: "{{ groups['cfme_databases'][0] }}"
become: True
gather_facts: False
vars_files:
Expand All @@ -31,7 +31,7 @@
password: "{{ vmdb_password }}"

- name: CFME | Change VMDB Password | Restart evmserverd
hosts: cfme-appliances
hosts: cfme_appliances
become: True
gather_facts: False
tasks:
Expand Down
2 changes: 1 addition & 1 deletion playbooks/disable-medium-ssl-ciphers.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: CFME | Disable Medium SSL Cipher Suites within CloudForms Configuration
hosts: cfme-appliances
hosts: cfme_appliances
gather_facts: True
handlers:
- name: CFME | Restart HTTPD
Expand Down
2 changes: 1 addition & 1 deletion playbooks/health-check.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: CFME | Health Check
hosts: cfme-appliances
hosts: cfme_appliances
gather_facts: True
tasks:
- name: CFME | Health Check | Include Tasks
Expand Down
16 changes: 8 additions & 8 deletions playbooks/migrate-5-7-to-5-8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
when: sat6_activation_key is not defined

- name: CFME | Migrate | 5.7 to 5.8 | Appliances Specific Preparation
hosts: cfme-appliances
hosts: cfme_appliances
become: True
gather_facts: False
tasks:
Expand All @@ -24,7 +24,7 @@
state: stopped

- name: CFME | Migrate | 5.7 to 5.8 | DB Specific Preparation
hosts: cfme-databases
hosts: cfme_databases
become: True
gather_facts: False
tasks:
Expand All @@ -44,7 +44,7 @@
state: latest

- name: CFME | Migrate | 5.7 to 5.8 | Start postgresql
hosts: cfme-databases
hosts: cfme_databases
become: True
gather_facts: False
tasks:
Expand All @@ -54,7 +54,7 @@
state: started

- name: CFME | Migrate | 5.8 to 5.9 | Wait for postgresql
hosts: cfme-databases
hosts: cfme_databases
become: True
gather_facts: False
tasks:
Expand All @@ -64,7 +64,7 @@
delay: 120

- name: CFME | Migrate | 5.7 to 5.8 | DB Migration
hosts: cfme-appliances
hosts: cfme_appliances
become: True
gather_facts: False
tasks:
Expand All @@ -81,7 +81,7 @@
poll: 60

- name: CFME | Migrate | 5.7 to 5.8 | Post DB Migrate Restart
hosts: cfme-databases
hosts: cfme_databases
become: True
gather_facts: False
tasks:
Expand All @@ -91,7 +91,7 @@
state: restarted

- name: CFME | Migrate | 5.7 to 5.8 | Check Schema
hosts: cfme-appliances
hosts: cfme_appliances
become: True
gather_facts: False
tasks:
Expand All @@ -113,7 +113,7 @@
- evm_check_schema

- name: CFME | Migrate | 5.7 to 5.8 | Restart evmserverd
hosts: cfme-appliances
hosts: cfme_appliances
become: True
gather_facts: False
tasks:
Expand Down
14 changes: 7 additions & 7 deletions playbooks/migrate-5-8-to-5-9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
when: sat6_activation_key is not defined

- name: CFME | Migrate | 5.8 to 5.9 | Appliances Specific Preparation
hosts: cfme-appliances
hosts: cfme_appliances
become: True
gather_facts: False
tasks:
Expand All @@ -24,7 +24,7 @@
state: stopped

- name: CFME | Migrate | 5.8 to 5.9 | DB Specific Preparation
hosts: cfme-databases
hosts: cfme_databases
become: True
gather_facts: False
tasks:
Expand All @@ -44,7 +44,7 @@
state: latest

- name: CFME | Migrate | 5.8 to 5.9 | Start postgresql
hosts: cfme-databases
hosts: cfme_databases
become: True
gather_facts: False
tasks:
Expand All @@ -54,7 +54,7 @@
state: started

- name: CFME | Migrate | 5.8 to 5.9 | Wait for postgresql
hosts: cfme-databases
hosts: cfme_databases
become: True
gather_facts: False
tasks:
Expand All @@ -64,7 +64,7 @@
delay: 120

- name: CFME | Migrate | 5.8 to 5.9 | DB Migration
hosts: cfme-appliances
hosts: cfme_appliances
become: True
gather_facts: False
tasks:
Expand All @@ -79,7 +79,7 @@
shell: "cd /var/www/miq/vmdb; rake evm:automate:reset > >(tee /var/tmp/evm_automate_reset.out) 2> >(tee /var/tmp/evm_automate_reset.err >&2)"

- name: CFME | Migrate | 5.8 to 5.9 | Post DB Migrate Restart
hosts: cfme-databases
hosts: cfme_databases
become: True
gather_facts: False
tasks:
Expand All @@ -89,7 +89,7 @@
state: restarted

- name: CFME | Migrate | 5.8 to 5.9 | Restart evmserverd
hosts: cfme-appliances
hosts: cfme_appliances
become: True
gather_facts: False
tasks:
Expand Down
14 changes: 7 additions & 7 deletions playbooks/migrate-5-9-to-5-10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
when: sat6_activation_key is not defined

- name: CFME | Migrate | 5.9 to 5.10 | Appliances Specific Preparation
hosts: cfme-appliances
hosts: cfme_appliances
become: True
gather_facts: False
tasks:
Expand All @@ -25,7 +25,7 @@
state: stopped

- name: CFME | Migrate | 5.9 to 5.10 | DB Specific Preparation
hosts: cfme-databases
hosts: cfme_databases
become: True
gather_facts: False
tasks:
Expand All @@ -45,7 +45,7 @@
state: latest

- name: CFME | Migrate | 5.9 to 5.10 | Start postgresql
hosts: cfme-databases
hosts: cfme_databases
become: True
gather_facts: False
tasks:
Expand All @@ -55,7 +55,7 @@
state: started

- name: CFME | Migrate | 5.9 to 5.10 | Wait for postgresql
hosts: cfme-databases
hosts: cfme_databases
become: True
gather_facts: False
tasks:
Expand All @@ -65,7 +65,7 @@
delay: 120

- name: CFME | Migrate | 5.9 to 5.10 | DB Migration
hosts: cfme-appliances
hosts: cfme_appliances
become: True
gather_facts: False
tasks:
Expand All @@ -90,7 +90,7 @@
executable: /bin/bash

- name: CFME | Migrate | 5.9 to 5.10 | Post DB Migrate Restart
hosts: cfme-databases
hosts: cfme_databases
become: True
gather_facts: False
tasks:
Expand All @@ -100,7 +100,7 @@
state: restarted

- name: CFME | Migrate | 5.9 to 5.10 | Restart evmserverd
hosts: cfme-appliances
hosts: cfme_appliances
become: True
gather_facts: False
tasks:
Expand Down
Loading

0 comments on commit bc94552

Please sign in to comment.