summaryrefslogtreecommitdiffstats
path: root/roles/openshift_buildoverrides
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-01-17 10:32:42 -0500
committerGitHub <noreply@github.com>2017-01-17 10:32:42 -0500
commitdef9d435ef60b1f11c29db2fc98fe266bbd4041d (patch)
tree25bdfd52c8b76b2198bbc8d6a76e2d39ed9daae8 /roles/openshift_buildoverrides
parent52860b6cdf48f0b74b0da13ad7d0663c663381d6 (diff)
parent313f52af560af6b651e067d4b9f22b554a4e9cf7 (diff)
downloadopenshift-def9d435ef60b1f11c29db2fc98fe266bbd4041d.tar.gz
openshift-def9d435ef60b1f11c29db2fc98fe266bbd4041d.tar.bz2
openshift-def9d435ef60b1f11c29db2fc98fe266bbd4041d.tar.xz
openshift-def9d435ef60b1f11c29db2fc98fe266bbd4041d.zip
Merge pull request #3086 from bparees/build_nodes
add configuration for build default+overrides settings
Diffstat (limited to 'roles/openshift_buildoverrides')
-rw-r--r--roles/openshift_buildoverrides/meta/main.yml15
-rw-r--r--roles/openshift_buildoverrides/tasks/main.yml15
-rw-r--r--roles/openshift_buildoverrides/vars/main.yml10
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) }}"