summaryrefslogtreecommitdiffstats
path: root/roles/openshift_builddefaults/tasks
diff options
context:
space:
mode:
authorJason DeTiberus <detiber@gmail.com>2016-04-25 12:59:20 -0400
committerJason DeTiberus <detiber@gmail.com>2016-04-25 12:59:20 -0400
commit12c2d75d84f76ddd806bffa4e3e4acc0c2f24f95 (patch)
treee3a5a4313adebf617c43be22e61897bc9a19ce41 /roles/openshift_builddefaults/tasks
parentfb0c88c4246207f8b6132082c8bf67145df9ea01 (diff)
parentb90d2e6e80a7080d1753caba1251505383b998f9 (diff)
downloadopenshift-12c2d75d84f76ddd806bffa4e3e4acc0c2f24f95.tar.gz
openshift-12c2d75d84f76ddd806bffa4e3e4acc0c2f24f95.tar.bz2
openshift-12c2d75d84f76ddd806bffa4e3e4acc0c2f24f95.tar.xz
openshift-12c2d75d84f76ddd806bffa4e3e4acc0c2f24f95.zip
Merge pull request #1385 from sdodson/global-proxy
Global Proxy Config
Diffstat (limited to 'roles/openshift_builddefaults/tasks')
-rw-r--r--roles/openshift_builddefaults/tasks/main.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/roles/openshift_builddefaults/tasks/main.yml b/roles/openshift_builddefaults/tasks/main.yml
new file mode 100644
index 000000000..c82aebe72
--- /dev/null
+++ b/roles/openshift_builddefaults/tasks/main.yml
@@ -0,0 +1,24 @@
+---
+- name: Set builddefaults
+ openshift_facts:
+ role: builddefaults
+ # TODO: add ability to define builddefaults env vars sort of like this
+ # may need to move the config generation to a filter however.
+ # openshift_env: "{{ hostvars[inventory_hostname]
+ # | oo_merge_dicts(hostvars)
+ # | oo_openshift_env }}"
+ # openshift_env_structures:
+ # - 'openshift.builddefaults.env.*'
+ local_facts:
+ http_proxy: "{{ openshift_builddefaults_http_proxy | default(None) }}"
+ https_proxy: "{{ openshift_builddefaults_https_proxy | default(None) }}"
+ no_proxy: "{{ openshift_builddefaults_no_proxy | default(None) }}"
+ git_http_proxy: "{{ openshift_builddefaults_git_http_proxy | default(None) }}"
+ git_https_proxy: "{{ openshift_builddefaults_git_https_proxy | default(None) }}"
+
+- name: Set builddefaults config structure
+ openshift_facts:
+ role: builddefaults
+ local_facts:
+ config: "{{ openshift_builddefaults_json | default(builddefaults_yaml) }}"
+