summaryrefslogtreecommitdiffstats
path: root/roles/openshift_cfme/tasks/main.yml
diff options
context:
space:
mode:
authorTim Bielawa <tbielawa@redhat.com>2017-10-05 15:42:18 -0400
committerTim Bielawa <tbielawa@redhat.com>2017-10-06 11:45:17 -0400
commitc0f63fb902b53bc592e6862d5876af9b244ee82b (patch)
tree85ab3b45eab2ebcf3c56c8236ebb829b0a562065 /roles/openshift_cfme/tasks/main.yml
parente7e82bede0f7ebac08a4290a3f088cca0ea3ab78 (diff)
downloadopenshift-c0f63fb902b53bc592e6862d5876af9b244ee82b.tar.gz
openshift-c0f63fb902b53bc592e6862d5876af9b244ee82b.tar.bz2
openshift-c0f63fb902b53bc592e6862d5876af9b244ee82b.tar.xz
openshift-c0f63fb902b53bc592e6862d5876af9b244ee82b.zip
Rename openshift_cfme role to openshift_management
Diffstat (limited to 'roles/openshift_cfme/tasks/main.yml')
-rw-r--r--roles/openshift_cfme/tasks/main.yml79
1 files changed, 0 insertions, 79 deletions
diff --git a/roles/openshift_cfme/tasks/main.yml b/roles/openshift_cfme/tasks/main.yml
deleted file mode 100644
index 78a6710b3..000000000
--- a/roles/openshift_cfme/tasks/main.yml
+++ /dev/null
@@ -1,79 +0,0 @@
----
-######################################################################)
-# Users, projects, and privileges
-
-- name: Run pre-install CFME validation checks
- include: validate.yml
-
-- name: "Ensure the CFME '{{ openshift_cfme_project }}' namespace exists"
- oc_project:
- state: present
- name: "{{ openshift_cfme_project }}"
- display_name: "{{ openshift_cfme_project_description }}"
-
-- name: Create and Authorize CFME Accounts
- include: accounts.yml
-
-######################################################################
-# STORAGE - Initialize basic storage class
-#---------------------------------------------------------------------
-# * nfs - set up NFS shares on the first master for a proof of concept
-- name: Create required NFS exports for CFME app storage
- include: storage/nfs.yml
- when: openshift_cfme_storage_class == 'nfs'
-
-#---------------------------------------------------------------------
-# * external - NFS again, but pointing to a pre-configured NFS server
-- name: Note Storage Type - External NFS
- debug:
- msg: "Setting up external NFS storage, openshift_cfme_storage_class is {{ openshift_cfme_storage_class }}"
- when: openshift_cfme_storage_class == 'nfs_external'
-
-#---------------------------------------------------------------------
-# * cloudprovider - use an existing cloudprovider based storage
-- name: Note Storage Type - Cloud Provider
- debug:
- msg: Validating cloud provider storage type, openshift_cfme_storage_class is 'cloudprovider'
- when: openshift_cfme_storage_class == 'cloudprovider'
-
-#---------------------------------------------------------------------
-# * preconfigured - don't do anything, assume it's all there ready to go
-- name: Note Storage Type - Preconfigured
- debug:
- msg: Skipping storage configuration, openshift_cfme_storage_class is 'preconfigured'
- when: openshift_cfme_storage_class == 'preconfigured'
-
-######################################################################
-# APPLICATION TEMPLATE
-- name: Install the CFME app and PV templates
- include: template.yml
-
-######################################################################
-# APP & DB Storage
-
-# For local/external NFS backed installations
-- name: "Create the required App and DB PVs using {{ openshift_cfme_storage_class }}"
- include: storage/create_nfs_pvs.yml
- when:
- - openshift_cfme_storage_class in ['nfs', 'nfs_external']
-
-######################################################################
-# CREATE APP
-- name: Note the correct ext-db template name
- set_fact:
- openshift_cfme_template_name: "{{ openshift_cfme_flavor }}-ext-db"
- when:
- - openshift_cfme_app_template in ['miq-template-ext-db', 'cfme-template-ext-db']
-
-- name: Note the correct podified db template name
- set_fact:
- openshift_cfme_template_name: "{{ openshift_cfme_flavor }}"
- when:
- - openshift_cfme_app_template in ['miq-template', 'cfme-template']
-
-- name: Ensure the CFME App is created
- oc_process:
- namespace: "{{ openshift_cfme_project }}"
- template_name: "{{ openshift_cfme_template_name }}"
- create: True
- params: "{{ openshift_cfme_template_parameters }}"