anchor.diff:  [[setting-global-build-overrides]]
   == Setting Global Build Overrides
   
  +You can set global build overrides two ways:
  +
  +- xref:ansible-seting-global-build-overrides[using Ansible and the advanced installation tool]
  +- xref:manually-setting-global-build-overrides[manually by modifying the *_master-config.yaml_* file]
  +
  +[[ansible-setting-global-build-overrides]]
  +=== Configuring Global Build Overrides with Ansible
  +
  +During
  +xref:../install_config/install/advanced_install.adoc#install-config-install-advanced-install[advanced installations],
  +the `BuildOverrides` plug-in can
  +be configured using the following parameters, which are configurable in the inventory file:
  +
  +- `openshift_buildoverrides_force_pull`
  +- `openshift_buildoverrides_image_labels`
  +- `openshift_buildoverrides_nodeselectors`
  +- `openshift_buildoverrides_annotations`
  +
  +.Example Build Overrides Configuration with Ansible
  +====
  +----
  +# These options configure the BuildOverrides admission controller which injects
  +# configuration into Builds.
  +openshift_buildoverrides_force_pull=true
  +openshift_buildoverrides_image_labels=[{'name':'imagelabelname1','value':'imagelabelvalue1'}]
  +openshift_buildoverrides_nodeselectors={'nodelabel1':'nodelabelvalue1'}
  +openshift_buildoverrides_annotations={'annotationkey1':'annotationvalue1'}
  +
  +# Or you may optionally define your own build overrides configuration serialized as json
  +#openshift_buildoverrides_json='{"BuildOverrides":{"configuration":{"apiVersion":"v1","kind":"BuildDefaultsConfig","forcePull":"true"}}}'
  +----
  +====
  +
  +[[manually-setting-global-build-overrides]]
  +=== Manually Setting Global Build Overrides
  +
   To configure the `BuildOverrides` plug-in:
   
   . Add a configuration for it in the
  
positive.code: - `openshift_builddefaults_no_proxy`
  - `openshift_builddefaults_git_http_proxy`
  - `openshift_builddefaults_git_https_proxy`
  
  .Example Build Defaults Configuration with Ansible
  ====
  ----
  # These options configure the BuildDefaults admission controller which injects
  # environment variables into Builds. These values will default to the global proxy
  # config values. You only need to set these if they differ from the global settings
  # above. See BuildDefaults
  # documentation at https://docs.openshift.org/latest/admin_guide/build_defaults_overrides.html
  #openshift_builddefaults_http_proxy=http://USER:PASSWORD@HOST:PORT
  openshift_builddefaults_https_proxy=https://USER:PASSWORD@HOST:PORT
  openshift_builddefaults_no_proxy=build_defaults
  openshift_builddefaults_git_http_proxy=http://USER:PASSWORD@HOST:PORT
  openshift_builddefaults_git_https_proxy=https://USER:PASSWORD@HOST:PORT
  # Or you may optionally define your own serialized as json
  #openshift_builddefaults_json='{"BuildDefaults":{"configuration":{"apiVersion":"v1","env":[{"name":"HTTP_PROXY","value":"http://proxy.example.com.redhat.com:3128"},{"name":"NO_PROXY","value":"ose3-master.example.com"}],"gitHTTPProxy":"http://proxy.example.com:3128","kind":"BuildDefaultsConfig"}}}'
  ----
  ====
  
  [NOTE]
  ====
  There are
  xref:../install_config/install/advanced_install.adoc#advanced-install-configuring-global-proxy[additional proxy settings]
  that can be
  xref:../install_config/build_defaults_overrides.adoc#setting-global-build-defaults[configured for builds] using Ansible parameters. For
  example:
  - The
  `openshift_builddefaults_git_http_proxy` and
  `openshift_builddefaults_git_https_proxy` parameters allow you to
  xref:../dev_guide/builds.adoc#using-a-proxy-for-git-cloning[use a proxy for git cloning]
  - The `openshift_builddefaults_http_proxy` and
  `openshift_builddefaults_https_proxy` parameters can make environment
  variables available to the
  xref:../dev_guide/builds.adoc#docker-strategy-environment[Docker build strategy]
  and
  xref:../dev_guide/builds.adoc#custom-strategy-environment[Custom build strategy]
  processes.
  ====
  
  [[manually-setting-global-build-defaults]]
  
negative.code: 
  You can set global build defaults two ways:
  
  - xref:ansible-setting-global-build-defaults[using Ansible and the advanced installation tool]
  - xref:manually-setting-global-build-defaults[manually by modifying the *_master-config.yaml_* file]
  
  [[ansible-setting-global-build-defaults]]
  === Configuring Global Build Defaults with Ansible
  
  During
  