diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-06-15 15:05:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-15 15:05:41 -0400 |
commit | 1ded13614039e408c81520020b5dccf3523915a4 (patch) | |
tree | 7a70c321962053c319f46bd2a73d5e7d5fd1174a /playbooks/common/openshift-cfme/config.yml | |
parent | 0862f7b6f1448d6ea1fe6c836b3ba1de0afb4485 (diff) | |
parent | 39e3ae639217738e3ffbb7e90a1e8940bc840798 (diff) | |
download | openshift-1ded13614039e408c81520020b5dccf3523915a4.tar.gz openshift-1ded13614039e408c81520020b5dccf3523915a4.tar.bz2 openshift-1ded13614039e408c81520020b5dccf3523915a4.tar.xz openshift-1ded13614039e408c81520020b5dccf3523915a4.zip |
Merge pull request #4041 from tbielawa/cfme
CFME as an OpenShift Pod
Diffstat (limited to 'playbooks/common/openshift-cfme/config.yml')
-rw-r--r-- | playbooks/common/openshift-cfme/config.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cfme/config.yml b/playbooks/common/openshift-cfme/config.yml new file mode 100644 index 000000000..533a35d9e --- /dev/null +++ b/playbooks/common/openshift-cfme/config.yml @@ -0,0 +1,44 @@ +--- +# TODO: Make this work. The 'name' variable below is undefined +# presently because it's part of the cfme role. This play can't run +# until that's re-worked. +# +# - name: Pre-Pull manageiq-pods docker images +# hosts: nodes +# tasks: +# - name: Ensure the latest manageiq-pods docker image is pulling +# docker_image: +# name: "{{ openshift_cfme_container_image }}" +# # Fire-and-forget method, never timeout +# async: 99999999999 +# # F-a-f, never check on this. True 'background' task. +# poll: 0 + +- name: Configure Masters for CFME Bulk Image Imports + hosts: oo_masters_to_config + serial: 1 + tasks: + - name: Run master cfme tuning playbook + include_role: + name: openshift_cfme + tasks_from: tune_masters + +- name: Setup CFME + hosts: oo_first_master + vars: + r_openshift_cfme_miq_template_content: "{{ lookup('file', 'roles/openshift_cfme/files/miq-template.yaml') | from_yaml}}" + 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 + - name: Ensure the server template was read from disk + debug: + msg="{{ r_openshift_cfme_miq_template_content | from_yaml }}" + + tasks: + - name: Run the CFME Setup Role + include_role: + name: openshift_cfme + vars: + template_dir: "{{ hostvars[groups.masters.0].r_openshift_cfme_mktemp.stdout }}" |