diff options
author | Ben Parees <bparees@redhat.com> | 2017-01-06 14:07:51 -0500 |
---|---|---|
committer | Ben Parees <bparees@redhat.com> | 2017-01-16 11:27:10 -0500 |
commit | 313f52af560af6b651e067d4b9f22b554a4e9cf7 (patch) | |
tree | b2bc6070466d05ea47b4d9a42dd45c368687d29a /roles/openshift_buildoverrides | |
parent | 78b948edb0c30e3ec876916a8bbe08db5f055ea7 (diff) | |
download | openshift-313f52af560af6b651e067d4b9f22b554a4e9cf7.tar.gz openshift-313f52af560af6b651e067d4b9f22b554a4e9cf7.tar.bz2 openshift-313f52af560af6b651e067d4b9f22b554a4e9cf7.tar.xz openshift-313f52af560af6b651e067d4b9f22b554a4e9cf7.zip |
add configuration for build default+overrides settings
Diffstat (limited to 'roles/openshift_buildoverrides')
-rw-r--r-- | roles/openshift_buildoverrides/meta/main.yml | 15 | ||||
-rw-r--r-- | roles/openshift_buildoverrides/tasks/main.yml | 15 | ||||
-rw-r--r-- | roles/openshift_buildoverrides/vars/main.yml | 10 |
3 files changed, 40 insertions, 0 deletions
diff --git a/roles/openshift_buildoverrides/meta/main.yml b/roles/openshift_buildoverrides/meta/main.yml new file mode 100644 index 000000000..e9d2e8712 --- /dev/null +++ b/roles/openshift_buildoverrides/meta/main.yml @@ -0,0 +1,15 @@ +--- +galaxy_info: + author: Ben Parees + description: OpenShift Build Overrides configuration + company: Red Hat, Inc. + license: Apache License, Version 2.0 + min_ansible_version: 1.9 + platforms: + - name: EL + versions: + - 7 + categories: + - cloud +dependencies: +- role: openshift_facts diff --git a/roles/openshift_buildoverrides/tasks/main.yml b/roles/openshift_buildoverrides/tasks/main.yml new file mode 100644 index 000000000..82fce1c5b --- /dev/null +++ b/roles/openshift_buildoverrides/tasks/main.yml @@ -0,0 +1,15 @@ +--- +#- name: Set buildoverrides +# openshift_facts: +# role: buildoverrides +# local_facts: +# force_pull: "{{ openshift_buildoverrides_force_pull | default(None) }}" +# image_labels: "{{ openshift_buildoverrides_image_labels | default(None) }}" +# nodeselectors: "{{ openshift_buildoverrides_nodeselectors | default(None) }}" +# annotations: "{{ openshift_buildoverrides_annotations | default(None) }}" + +- name: Set buildoverrides config structure + openshift_facts: + role: buildoverrides + local_facts: + config: "{{ openshift_buildoverrides_json | default(buildoverrides_yaml) }}" diff --git a/roles/openshift_buildoverrides/vars/main.yml b/roles/openshift_buildoverrides/vars/main.yml new file mode 100644 index 000000000..f0f9c255b --- /dev/null +++ b/roles/openshift_buildoverrides/vars/main.yml @@ -0,0 +1,10 @@ +--- +buildoverrides_yaml: + BuildOverrides: + configuration: + apiVersion: v1 + kind: BuildOverridesConfig + forcePull: "{{ openshift_buildoverrides_force_pull | default('', true) }}" + imageLabels: "{{ openshift_buildoverrides_image_labels | default(None) }}" + nodeSelector: "{{ openshift_buildoverrides_nodeselectors | default(None) }}" + annotations: "{{ openshift_buildoverrides_annotations | default(None) }}" |