From c0f63fb902b53bc592e6862d5876af9b244ee82b Mon Sep 17 00:00:00 2001 From: Tim Bielawa Date: Thu, 5 Oct 2017 15:42:18 -0400 Subject: Rename openshift_cfme role to openshift_management --- inventory/byo/hosts.example | 32 +- playbooks/byo/openshift-cfme/config.yml | 8 - playbooks/byo/openshift-cfme/uninstall.yml | 6 - playbooks/byo/openshift-management/config.yml | 8 + playbooks/byo/openshift-management/uninstall.yml | 6 + playbooks/common/openshift-cfme/config.yml | 15 - playbooks/common/openshift-cfme/filter_plugins | 1 - playbooks/common/openshift-cfme/library | 1 - playbooks/common/openshift-cfme/roles | 1 - playbooks/common/openshift-cfme/uninstall.yml | 8 - playbooks/common/openshift-cluster/config.yml | 4 +- .../common/openshift-cluster/openshift_cfme.yml | 25 - .../openshift-cluster/openshift_management.yml | 25 + playbooks/common/openshift-management/config.yml | 15 + .../common/openshift-management/filter_plugins | 1 + playbooks/common/openshift-management/library | 1 + playbooks/common/openshift-management/roles | 1 + .../common/openshift-management/uninstall.yml | 8 + .../callback_plugins/installer_checkpoint.py | 5 + roles/openshift_cfme/README.md | 467 ---------- roles/openshift_cfme/defaults/main.yml | 90 -- .../templates/cloudforms/cfme-backup-job.yaml | 28 - .../templates/cloudforms/cfme-backup-pvc.yaml | 10 - .../cloudforms/cfme-pv-backup-example.yaml | 13 - .../templates/cloudforms/cfme-pv-db-example.yaml | 38 - .../cloudforms/cfme-pv-server-example.yaml | 38 - .../templates/cloudforms/cfme-restore-job.yaml | 35 - .../templates/cloudforms/cfme-scc-sysadmin.yaml | 38 - .../templates/cloudforms/cfme-template-ext-db.yaml | 763 ----------------- .../files/templates/cloudforms/cfme-template.yaml | 940 -------------------- .../files/templates/manageiq/miq-backup-job.yaml | 28 - .../files/templates/manageiq/miq-backup-pvc.yaml | 10 - .../templates/manageiq/miq-pv-backup-example.yaml | 13 - .../templates/manageiq/miq-pv-db-example.yaml | 38 - .../templates/manageiq/miq-pv-server-example.yaml | 38 - .../files/templates/manageiq/miq-restore-job.yaml | 35 - .../templates/manageiq/miq-template-ext-db.yaml | 771 ----------------- .../files/templates/manageiq/miq-template.yaml | 948 --------------------- roles/openshift_cfme/handlers/main.yml | 0 roles/openshift_cfme/meta/main.yml | 18 - roles/openshift_cfme/tasks/accounts.yml | 28 - roles/openshift_cfme/tasks/main.yml | 79 -- .../tasks/storage/create_nfs_pvs.yml | 69 -- roles/openshift_cfme/tasks/storage/nfs.yml | 67 -- roles/openshift_cfme/tasks/storage/storage.yml | 3 - roles/openshift_cfme/tasks/template.yml | 128 --- roles/openshift_cfme/tasks/uninstall.yml | 23 - roles/openshift_cfme/tasks/validate.yml | 90 -- .../openshift_cfme-miq-template-ext-db.exports.j2 | 1 - .../openshift_cfme-miq-template.exports.j2 | 2 - roles/openshift_cfme/vars/main.yml | 76 -- roles/openshift_management/README.md | 475 +++++++++++ roles/openshift_management/defaults/main.yml | 90 ++ .../templates/cloudforms/cfme-backup-job.yaml | 28 + .../templates/cloudforms/cfme-backup-pvc.yaml | 10 + .../cloudforms/cfme-pv-backup-example.yaml | 13 + .../templates/cloudforms/cfme-pv-db-example.yaml | 38 + .../cloudforms/cfme-pv-server-example.yaml | 38 + .../templates/cloudforms/cfme-restore-job.yaml | 35 + .../templates/cloudforms/cfme-scc-sysadmin.yaml | 38 + .../templates/cloudforms/cfme-template-ext-db.yaml | 763 +++++++++++++++++ .../files/templates/cloudforms/cfme-template.yaml | 940 ++++++++++++++++++++ .../files/templates/manageiq/miq-backup-job.yaml | 28 + .../files/templates/manageiq/miq-backup-pvc.yaml | 10 + .../templates/manageiq/miq-pv-backup-example.yaml | 13 + .../templates/manageiq/miq-pv-db-example.yaml | 38 + .../templates/manageiq/miq-pv-server-example.yaml | 38 + .../files/templates/manageiq/miq-restore-job.yaml | 35 + .../templates/manageiq/miq-template-ext-db.yaml | 771 +++++++++++++++++ .../files/templates/manageiq/miq-template.yaml | 948 +++++++++++++++++++++ roles/openshift_management/handlers/main.yml | 0 roles/openshift_management/meta/main.yml | 18 + roles/openshift_management/tasks/accounts.yml | 28 + roles/openshift_management/tasks/main.yml | 79 ++ .../tasks/storage/create_nfs_pvs.yml | 69 ++ roles/openshift_management/tasks/storage/nfs.yml | 67 ++ .../openshift_management/tasks/storage/storage.yml | 3 + roles/openshift_management/tasks/template.yml | 128 +++ roles/openshift_management/tasks/uninstall.yml | 23 + roles/openshift_management/tasks/validate.yml | 90 ++ roles/openshift_management/vars/main.yml | 76 ++ 81 files changed, 5018 insertions(+), 5008 deletions(-) delete mode 100644 playbooks/byo/openshift-cfme/config.yml delete mode 100644 playbooks/byo/openshift-cfme/uninstall.yml create mode 100644 playbooks/byo/openshift-management/config.yml create mode 100644 playbooks/byo/openshift-management/uninstall.yml delete mode 100644 playbooks/common/openshift-cfme/config.yml delete mode 120000 playbooks/common/openshift-cfme/filter_plugins delete mode 120000 playbooks/common/openshift-cfme/library delete mode 120000 playbooks/common/openshift-cfme/roles delete mode 100644 playbooks/common/openshift-cfme/uninstall.yml delete mode 100644 playbooks/common/openshift-cluster/openshift_cfme.yml create mode 100644 playbooks/common/openshift-cluster/openshift_management.yml create mode 100644 playbooks/common/openshift-management/config.yml create mode 120000 playbooks/common/openshift-management/filter_plugins create mode 120000 playbooks/common/openshift-management/library create mode 120000 playbooks/common/openshift-management/roles create mode 100644 playbooks/common/openshift-management/uninstall.yml delete mode 100644 roles/openshift_cfme/README.md delete mode 100644 roles/openshift_cfme/defaults/main.yml delete mode 100644 roles/openshift_cfme/files/templates/cloudforms/cfme-backup-job.yaml delete mode 100644 roles/openshift_cfme/files/templates/cloudforms/cfme-backup-pvc.yaml delete mode 100644 roles/openshift_cfme/files/templates/cloudforms/cfme-pv-backup-example.yaml delete mode 100644 roles/openshift_cfme/files/templates/cloudforms/cfme-pv-db-example.yaml delete mode 100644 roles/openshift_cfme/files/templates/cloudforms/cfme-pv-server-example.yaml delete mode 100644 roles/openshift_cfme/files/templates/cloudforms/cfme-restore-job.yaml delete mode 100644 roles/openshift_cfme/files/templates/cloudforms/cfme-scc-sysadmin.yaml delete mode 100644 roles/openshift_cfme/files/templates/cloudforms/cfme-template-ext-db.yaml delete mode 100644 roles/openshift_cfme/files/templates/cloudforms/cfme-template.yaml delete mode 100644 roles/openshift_cfme/files/templates/manageiq/miq-backup-job.yaml delete mode 100644 roles/openshift_cfme/files/templates/manageiq/miq-backup-pvc.yaml delete mode 100644 roles/openshift_cfme/files/templates/manageiq/miq-pv-backup-example.yaml delete mode 100644 roles/openshift_cfme/files/templates/manageiq/miq-pv-db-example.yaml delete mode 100644 roles/openshift_cfme/files/templates/manageiq/miq-pv-server-example.yaml delete mode 100644 roles/openshift_cfme/files/templates/manageiq/miq-restore-job.yaml delete mode 100644 roles/openshift_cfme/files/templates/manageiq/miq-template-ext-db.yaml delete mode 100644 roles/openshift_cfme/files/templates/manageiq/miq-template.yaml delete mode 100644 roles/openshift_cfme/handlers/main.yml delete mode 100644 roles/openshift_cfme/meta/main.yml delete mode 100644 roles/openshift_cfme/tasks/accounts.yml delete mode 100644 roles/openshift_cfme/tasks/main.yml delete mode 100644 roles/openshift_cfme/tasks/storage/create_nfs_pvs.yml delete mode 100644 roles/openshift_cfme/tasks/storage/nfs.yml delete mode 100644 roles/openshift_cfme/tasks/storage/storage.yml delete mode 100644 roles/openshift_cfme/tasks/template.yml delete mode 100644 roles/openshift_cfme/tasks/uninstall.yml delete mode 100644 roles/openshift_cfme/tasks/validate.yml delete mode 100644 roles/openshift_cfme/templates/openshift_cfme-miq-template-ext-db.exports.j2 delete mode 100644 roles/openshift_cfme/templates/openshift_cfme-miq-template.exports.j2 delete mode 100644 roles/openshift_cfme/vars/main.yml create mode 100644 roles/openshift_management/README.md create mode 100644 roles/openshift_management/defaults/main.yml create mode 100644 roles/openshift_management/files/templates/cloudforms/cfme-backup-job.yaml create mode 100644 roles/openshift_management/files/templates/cloudforms/cfme-backup-pvc.yaml create mode 100644 roles/openshift_management/files/templates/cloudforms/cfme-pv-backup-example.yaml create mode 100644 roles/openshift_management/files/templates/cloudforms/cfme-pv-db-example.yaml create mode 100644 roles/openshift_management/files/templates/cloudforms/cfme-pv-server-example.yaml create mode 100644 roles/openshift_management/files/templates/cloudforms/cfme-restore-job.yaml create mode 100644 roles/openshift_management/files/templates/cloudforms/cfme-scc-sysadmin.yaml create mode 100644 roles/openshift_management/files/templates/cloudforms/cfme-template-ext-db.yaml create mode 100644 roles/openshift_management/files/templates/cloudforms/cfme-template.yaml create mode 100644 roles/openshift_management/files/templates/manageiq/miq-backup-job.yaml create mode 100644 roles/openshift_management/files/templates/manageiq/miq-backup-pvc.yaml create mode 100644 roles/openshift_management/files/templates/manageiq/miq-pv-backup-example.yaml create mode 100644 roles/openshift_management/files/templates/manageiq/miq-pv-db-example.yaml create mode 100644 roles/openshift_management/files/templates/manageiq/miq-pv-server-example.yaml create mode 100644 roles/openshift_management/files/templates/manageiq/miq-restore-job.yaml create mode 100644 roles/openshift_management/files/templates/manageiq/miq-template-ext-db.yaml create mode 100644 roles/openshift_management/files/templates/manageiq/miq-template.yaml create mode 100644 roles/openshift_management/handlers/main.yml create mode 100644 roles/openshift_management/meta/main.yml create mode 100644 roles/openshift_management/tasks/accounts.yml create mode 100644 roles/openshift_management/tasks/main.yml create mode 100644 roles/openshift_management/tasks/storage/create_nfs_pvs.yml create mode 100644 roles/openshift_management/tasks/storage/nfs.yml create mode 100644 roles/openshift_management/tasks/storage/storage.yml create mode 100644 roles/openshift_management/tasks/template.yml create mode 100644 roles/openshift_management/tasks/uninstall.yml create mode 100644 roles/openshift_management/tasks/validate.yml create mode 100644 roles/openshift_management/vars/main.yml diff --git a/inventory/byo/hosts.example b/inventory/byo/hosts.example index 88809be2b..406d53052 100644 --- a/inventory/byo/hosts.example +++ b/inventory/byo/hosts.example @@ -240,9 +240,9 @@ openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', # CloudForms Management Engine (ManageIQ) App Install # # Enables installation of MIQ server. Recommended for dedicated -# clusters only. See roles/openshift_cfme/README.md for instructions +# clusters only. See roles/openshift_management/README.md for instructions # and requirements. -#openshift_cfme_install_app=False +#openshift_management_install_management=False # Cloud Provider Configuration # @@ -920,31 +920,31 @@ ose3-node[1:2]-ansible.test.example.com openshift_node_labels="{'region': 'prima # CloudForms/ManageIQ (CFME/MIQ) Configuration # See the readme for full descriptions and getting started -# instructions: ../../roles/openshift_cfme/README.md or go directly to -# their definitions: ../../roles/openshift_cfme/defaults/main.yml -# ../../roles/openshift_cfme/vars/main.yml +# instructions: ../../roles/openshift_management/README.md or go directly to +# their definitions: ../../roles/openshift_management/defaults/main.yml +# ../../roles/openshift_management/vars/main.yml # # Namespace for the CFME project -#openshift_cfme_project: openshift-cfme +#openshift_management_project: openshift-management # Namespace/project description -#openshift_cfme_project_description: CloudForms Management Engine +#openshift_management_project_description: CloudForms Management Engine # Choose 'miq-template' for a podified database install # Choose 'miq-template-ext-db' for an external database install # # If you are using the miq-template-ext-db template then you must add # the required database parameters to the -# openshift_cfme_template_parameters variable. -#openshift_cfme_app_template: miq-template +# openshift_management_template_parameters variable. +#openshift_management_app_template: miq-template # Allowed options: nfs, nfs_external, preconfigured, cloudprovider. -#openshift_cfme_storage_class: nfs +#openshift_management_storage_class: nfs # [OPTIONAL] - If you are using an EXTERNAL NFS server, such as a # netapp appliance, then you must set the hostname here. Leave the # value as 'false' if you are not using external NFS. -#openshift_cfme_storage_nfs_external_hostname: false +#openshift_management_storage_nfs_external_hostname: false # [OPTIONAL] - If you are using external NFS then you must set the base # path to the exports location here. @@ -952,19 +952,19 @@ ose3-node[1:2]-ansible.test.example.com openshift_node_labels="{'region': 'prima # Additionally: EXTERNAL NFS REQUIRES that YOU CREATE the nfs exports # that will back the application PV and optionally the database # pv. Export path definitions, relative to -# {{ openshift_cfme_storage_nfs_base_dir }} +# {{ openshift_management_storage_nfs_base_dir }} # # LOCAL NFS NOTE: # # You may may also change this value if you want to change the default # path used for local NFS exports. -#openshift_cfme_storage_nfs_base_dir: /exports +#openshift_management_storage_nfs_base_dir: /exports # LOCAL NFS NOTE: # # You may override the automatically selected LOCAL NFS server by # setting this variable. Useful for testing specific task files. -#openshift_cfme_storage_nfs_local_hostname: false +#openshift_management_storage_nfs_local_hostname: false # A hash of parameters you want to override or set in the # miq-template.yaml or miq-template-ext-db.yaml templates. Set this in @@ -972,5 +972,5 @@ ose3-node[1:2]-ansible.test.example.com openshift_node_labels="{'region': 'prima # under the .parameters list in files/miq-template{-ext-db}.yaml # Example: # -# openshift_cfme_template_parameters={'APPLICATION_MEM_REQ': '512Mi'} -#openshift_cfme_template_parameters: {} +# openshift_management_template_parameters={'APPLICATION_MEM_REQ': '512Mi'} +#openshift_management_template_parameters: {} diff --git a/playbooks/byo/openshift-cfme/config.yml b/playbooks/byo/openshift-cfme/config.yml deleted file mode 100644 index 0e8e7a94d..000000000 --- a/playbooks/byo/openshift-cfme/config.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- include: ../openshift-cluster/initialize_groups.yml - tags: - - always - -- include: ../../common/openshift-cluster/evaluate_groups.yml - -- include: ../../common/openshift-cfme/config.yml diff --git a/playbooks/byo/openshift-cfme/uninstall.yml b/playbooks/byo/openshift-cfme/uninstall.yml deleted file mode 100644 index c8ed16859..000000000 --- a/playbooks/byo/openshift-cfme/uninstall.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -# - include: ../openshift-cluster/initialize_groups.yml -# tags: -# - always - -- include: ../../common/openshift-cfme/uninstall.yml diff --git a/playbooks/byo/openshift-management/config.yml b/playbooks/byo/openshift-management/config.yml new file mode 100644 index 000000000..33a555cc1 --- /dev/null +++ b/playbooks/byo/openshift-management/config.yml @@ -0,0 +1,8 @@ +--- +- include: ../openshift-cluster/initialize_groups.yml + tags: + - always + +- include: ../../common/openshift-cluster/evaluate_groups.yml + +- include: ../../common/openshift-management/config.yml diff --git a/playbooks/byo/openshift-management/uninstall.yml b/playbooks/byo/openshift-management/uninstall.yml new file mode 100644 index 000000000..ebd6fb261 --- /dev/null +++ b/playbooks/byo/openshift-management/uninstall.yml @@ -0,0 +1,6 @@ +--- +# - include: ../openshift-cluster/initialize_groups.yml +# tags: +# - always + +- include: ../../common/openshift-management/uninstall.yml diff --git a/playbooks/common/openshift-cfme/config.yml b/playbooks/common/openshift-cfme/config.yml deleted file mode 100644 index 08df4a57e..000000000 --- a/playbooks/common/openshift-cfme/config.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- name: Setup CFME - hosts: oo_first_master - pre_tasks: - - name: Create a temporary place to evaluate the PV templates - command: mktemp -d /tmp/openshift-ansible-XXXXXXX - register: r_openshift_cfme_mktemp - changed_when: false - - tasks: - - name: Run the CFME Setup Role - include_role: - name: openshift_cfme - vars: - template_dir: "{{ hostvars[groups.masters.0].r_openshift_cfme_mktemp.stdout }}" diff --git a/playbooks/common/openshift-cfme/filter_plugins b/playbooks/common/openshift-cfme/filter_plugins deleted file mode 120000 index 99a95e4ca..000000000 --- a/playbooks/common/openshift-cfme/filter_plugins +++ /dev/null @@ -1 +0,0 @@ -../../../filter_plugins \ No newline at end of file diff --git a/playbooks/common/openshift-cfme/library b/playbooks/common/openshift-cfme/library deleted file mode 120000 index ba40d2f56..000000000 --- a/playbooks/common/openshift-cfme/library +++ /dev/null @@ -1 +0,0 @@ -../../../library \ No newline at end of file diff --git a/playbooks/common/openshift-cfme/roles b/playbooks/common/openshift-cfme/roles deleted file mode 120000 index 20c4c58cf..000000000 --- a/playbooks/common/openshift-cfme/roles +++ /dev/null @@ -1 +0,0 @@ -../../../roles \ No newline at end of file diff --git a/playbooks/common/openshift-cfme/uninstall.yml b/playbooks/common/openshift-cfme/uninstall.yml deleted file mode 100644 index 78b8e7668..000000000 --- a/playbooks/common/openshift-cfme/uninstall.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Uninstall CFME - hosts: masters - tasks: - - name: Run the CFME Uninstall Role Tasks - include_role: - name: openshift_cfme - tasks_from: uninstall diff --git a/playbooks/common/openshift-cluster/config.yml b/playbooks/common/openshift-cluster/config.yml index 76ca067e7..b399ea995 100644 --- a/playbooks/common/openshift-cluster/config.yml +++ b/playbooks/common/openshift-cluster/config.yml @@ -46,8 +46,8 @@ - include: service_catalog.yml when: openshift_enable_service_catalog | default(false) | bool -- include: openshift_cfme.yml - when: openshift_cfme_install_cfme | default(false) | bool +- include: openshift_management.yml + when: openshift_management_install_management | default(false) | bool - name: Print deprecated variable warning message if necessary hosts: oo_first_master diff --git a/playbooks/common/openshift-cluster/openshift_cfme.yml b/playbooks/common/openshift-cluster/openshift_cfme.yml deleted file mode 100644 index 29966d99e..000000000 --- a/playbooks/common/openshift-cluster/openshift_cfme.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -- name: CFME Install Checkpoint Start - hosts: localhost - connection: local - gather_facts: false - tasks: - - name: Set CFME install 'In Progress' - set_stats: - data: - installer_phase_cfme: "In Progress" - aggregate: false - -- name: CFME - include: ../openshift-cfme/config.yml - -- name: CFME Install Checkpoint End - hosts: localhost - connection: local - gather_facts: false - tasks: - - name: Set CFME install 'Complete' - set_stats: - data: - installer_phase_CFME: "Complete" - aggregate: false diff --git a/playbooks/common/openshift-cluster/openshift_management.yml b/playbooks/common/openshift-cluster/openshift_management.yml new file mode 100644 index 000000000..6e582920b --- /dev/null +++ b/playbooks/common/openshift-cluster/openshift_management.yml @@ -0,0 +1,25 @@ +--- +- name: Management Install Checkpoint Start + hosts: localhost + connection: local + gather_facts: false + tasks: + - name: Set Management install 'In Progress' + set_stats: + data: + installer_phase_Management: "In Progress" + aggregate: false + +- name: Management + include: ../openshift-management/config.yml + +- name: Management Install Checkpoint End + hosts: localhost + connection: local + gather_facts: false + tasks: + - name: Set Management install 'Complete' + set_stats: + data: + installer_phase_Management: "Complete" + aggregate: false diff --git a/playbooks/common/openshift-management/config.yml b/playbooks/common/openshift-management/config.yml new file mode 100644 index 000000000..0aaafe440 --- /dev/null +++ b/playbooks/common/openshift-management/config.yml @@ -0,0 +1,15 @@ +--- +- name: Setup CFME + hosts: oo_first_master + pre_tasks: + - name: Create a temporary place to evaluate the PV templates + command: mktemp -d /tmp/openshift-ansible-XXXXXXX + register: r_openshift_management_mktemp + changed_when: false + + tasks: + - name: Run the CFME Setup Role + include_role: + name: openshift_management + vars: + template_dir: "{{ hostvars[groups.masters.0].r_openshift_management_mktemp.stdout }}" diff --git a/playbooks/common/openshift-management/filter_plugins b/playbooks/common/openshift-management/filter_plugins new file mode 120000 index 000000000..99a95e4ca --- /dev/null +++ b/playbooks/common/openshift-management/filter_plugins @@ -0,0 +1 @@ +../../../filter_plugins \ No newline at end of file diff --git a/playbooks/common/openshift-management/library b/playbooks/common/openshift-management/library new file mode 120000 index 000000000..ba40d2f56 --- /dev/null +++ b/playbooks/common/openshift-management/library @@ -0,0 +1 @@ +../../../library \ No newline at end of file diff --git a/playbooks/common/openshift-management/roles b/playbooks/common/openshift-management/roles new file mode 120000 index 000000000..20c4c58cf --- /dev/null +++ b/playbooks/common/openshift-management/roles @@ -0,0 +1 @@ +../../../roles \ No newline at end of file diff --git a/playbooks/common/openshift-management/uninstall.yml b/playbooks/common/openshift-management/uninstall.yml new file mode 100644 index 000000000..698d93405 --- /dev/null +++ b/playbooks/common/openshift-management/uninstall.yml @@ -0,0 +1,8 @@ +--- +- name: Uninstall CFME + hosts: masters + tasks: + - name: Run the CFME Uninstall Role Tasks + include_role: + name: openshift_management + tasks_from: uninstall diff --git a/roles/installer_checkpoint/callback_plugins/installer_checkpoint.py b/roles/installer_checkpoint/callback_plugins/installer_checkpoint.py index 033240e62..ac369b882 100644 --- a/roles/installer_checkpoint/callback_plugins/installer_checkpoint.py +++ b/roles/installer_checkpoint/callback_plugins/installer_checkpoint.py @@ -81,6 +81,7 @@ class CallbackModule(CallbackBase): 'installer_phase_metrics', 'installer_phase_logging', 'installer_phase_servicecatalog', + 'installer_phase_management', ] # Define the attributes of the installer phases @@ -133,6 +134,10 @@ class CallbackModule(CallbackBase): 'title': 'Service Catalog Install', 'playbook': 'playbooks/byo/openshift-cluster/service-catalog.yml' }, + 'installer_phase_management': { + 'title': 'Management Install', + 'playbook': 'playbooks/common/openshift-cluster/openshift_management.yml' + }, } # Find the longest phase title diff --git a/roles/openshift_cfme/README.md b/roles/openshift_cfme/README.md deleted file mode 100644 index 26618ffb8..000000000 --- a/roles/openshift_cfme/README.md +++ /dev/null @@ -1,467 +0,0 @@ -# CloudForms Availability - -As noted in [Limitations - Product Choice](#product-choice), -[CloudForms](https://www.redhat.com/en/technologies/management/cloudforms) -(CFME) 4.6 is not yet released. Until such time, this role is limited -to installing [ManageIQ](http://manageiq.org) (MIQ), the open source -project that CFME is based on. - -After CFME 4.6 is available to customers this role will enable -(optional) logic which will install CFME or MIQ based on your -deployment type (`openshift_deployment_type`): - -* `openshift-enterprise` → CloudForms -* `origin` → ManageIQ - - -# Table of Contents - - * [Introduction](#introduction) - * [Important Notes](#important-notes) - * [Requirements](#requirements) - * [Role Variables](#role-variables) - * [Getting Started](#getting-started) - * [All Defaults](#all-defaults) - * [External NFS Storage](#external-nfs-storage) - * [Override PV sizes](#override-pv-sizes) - * [Override Memory Requirements](#override-memory-requirements) - * [External PostgreSQL Database](#external-postgresql-database) - * [Limitations](#limitations) - * [Product Choice](#product-choice) - * [Configuration](#configuration) - * [Database](#database) - * [Podified](#podified) - * [External](#external) - * [Storage Classes](#storage-classes) - * [NFS (Default)](#nfs-default) - * [NFS External](#nfs-external) - * [Cloud Provider](#cloud-provider) - * [Preconfigured (Expert Configuration Only)](#preconfigured-expert-configuration-only) - * [Customization](#customization) - * [Additional Information](#additional-information) - -# Introduction - -This role will allow a user to install CFME 4.6 or MIQ on an OCP -3.7 cluster. The role provides customization options for overriding -default deployment parameters. This role allows the user to deploy -different installation flavors: - -* **Fully Podified** - In this way all application services are ran as - pods in the container platform. -* **External Database** - In this way the application utilizes an - externally hosted database server. All other services are ran in the - container platform. - -This role includes the following storage class options: - -* NFS - **Default** - local, on cluster -* NFS External - NFS somewhere else, like a storage appliance -* Cloud Provider - Use automatic storage provisioning from your cloud - provider (*gce* or *aws*) -* Preconfigured - **expert only**, assumes you created everything ahead - of time - -You may skip ahead to the [Getting Started](#getting-started) section -now for examples of how to set up your Ansible inventory for various -deployment configurations. However, you are **strongly urged** to -first read through the [Configuration](#configuration) and -[Customization](#customization) sections as well as the following -[Important Notes](#important-notes). - -## Important Notes - -Not all parameters are present in **both** template versions (podified -db and external db). For example, while the podified database template -has a `POSTGRESQL_MEM_REQ` parameter, no such parameter is present in -the external db template, as there is no need for this information due -to there being no databases that require pods. - -*Be extra careful* if you are overriding template -parameters. Including parameters not defined in a template **will -cause errors**. - -**Container Provider Integration** - If you want add your container -platform (OCP/Origin) as a *Container Provider* in CFME/MIQ then you -must ensure that the infrastructure management hooks are installed. - -* During your OCP/Origin install, ensure that you have the - `openshift_use_manageiq` parameter set to `true` in your inventory - at install time. This will create a `management-infra` project and a - service account user. -* After CFME/MIQ is installed, obtain the `management-admin` service - account token and copy it somewhere safe. - -```bash -$ oc serviceaccounts get-token -n management-infra management-admin -eyJhuGdiOiJSUzI1NiIsInR5dCI6IkpXVCJ9.eyJpd9MiOiJrbWJldm5lbGVzL9NldnZpY2VhY2NvbW50Iiwiy9ViZXJuZXRldy5puy9zZXJ2yWNlYWNju9VubC9uYW1ld9BhY2UiOiJtYW5hZ2VtZW50LWluZnJhIiwiy9ViZXJuZXRldy5puy9zZXJ2yWNlYWNju9VubC9zZWNyZXQuumFtZSI6Im1humFnZW1lunQtYWRtyW4tbG9rZW4tdDBnOTAiLCJrbWJldm5lbGVzLmlvL9NldnZpY2VhY2NvbW50L9NldnZpY2UtYWNju9VubC5uYW1lIjoiuWFuYWbluWVubC1hZG1puiIsImt1YmVyumV0ZXMuyW8vd2VybmljZWFjY291unQvd2VybmljZS1hY2NvbW50LnVpZCI6IjRiZDM2MWQ1LWE1NDAtMTFlNy04YzI5LTUyNTQwMDliMmNkZCIsInN1YiI6InN5d9RluTpzZXJ2yWNlYWNju9VubDptYW5hZ2VtZW50LWluZnJhOm1humFnZW1lunQtYWRtyW4ifQ.B6sZLGD9O4vBu9MHwiG-C_4iEwjBXb7Af8BPw-LNlujDmHhOnQ-Oo4QxQKyj9edynfmDy2yutUyJ2Mm9HfDGWg4C9xhWImHoq6Nl7T5_9djkeGKkK7Ejvg4fA-IkrzEsZeQuluBvXnE6wvP0LCjUo_dx4pPyZJyp46teV9NqKQeDzeysjlMCyqp6AK6-Lj8ILG8YA6d_97HlzL_EgFBLAu0lBSn-uC_9J0gLysqBtK6TI0nExfhv9Bm1_5bdHEbKHPW7xIlYlI9AgmyTyhsQ6SoQWtL2khBjkG9TlPBq9wYJj9bzqgVZlqEfICZxgtXO7sYyuoje4y8lo0YQ0kZmig -``` - -* In the CFME/MIQ web interface, navigate to `Compute` → - `Containers` → `Providers` and select `⚙ Configuration` → `⊕ - Add a new Containers Provider` - -*See the [upstream documentation](http://manageiq.org/docs/reference/latest/doc-Managing_Providers/miq/index.html#containers-providers) for additional information.* - - - -# Requirements - -The **default** requirements are listed in the table below. These can -be overridden through customization parameters (See -[Customization](#customization), below). - -**Note** that the application performance will suffer, or possibly -even fail to deploy, if these requirements are not satisfied. - - -| Item | Requirement | Description | Customization Parameter | -|---------------------|---------------|----------------------------------------------|-------------------------------| -| Application Memory | `≥ 4.0 Gi` | Minimum required memory for the application | `APPLICATION_MEM_REQ` | -| Application Storage | `≥ 5.0 Gi` | Minimum PV size required for the application | `APPLICATION_VOLUME_CAPACITY` | -| PostgreSQL Memory | `≥ 6.0 Gi` | Minimum required memory for the database | `POSTGRESQL_MEM_REQ` | -| PostgreSQL Storage | `≥ 15.0 Gi` | Minimum PV size required for the database | `DATABASE_VOLUME_CAPACITY` | -| Cluster Hosts | `≥ 3` | Number of hosts in your cluster | | - -The implications of this table are summarized below: - -* You need several cluster nodes -* Your cluster nodes must have lots of memory available -* You will need several GiB's of storage available, either locally or - on your cloud provider -* PV sizes can be changed by providing override values to template - parameters (see also: [Customization](#customization)) - -# Role Variables - -The following is a table of the publicly exposed variables that may be -used in your Ansible inventory to control the behavior of this -installer. - - -| Variable | Required | Default | Description | -|------------------------------------------------|:--------:|:------------------------------:|-------------------------------------| -| `openshift_cfme_project` | **No** | `openshift-cfme` | Namespace for the installation. | -| `openshift_cfme_project_description` | **No** | *CloudForms Management Engine* | Namespace/project description. | -| `openshift_cfme_install_cfme` | **No** | `false` | Boolean, set to `true` to install the application | -| **PRODUCT CHOICE** | | | | | -| `openshift_cfme_app_template` | **No** | `miq-template` | The project flavor to install. Choices: | -| **STORAGE CLASSES** | | | | | -| `openshift_cfme_storage_class` | **No** | `nfs` | Storage type to use, choices: