summaryrefslogtreecommitdiffstats
path: root/playbooks/provisioning/openstack/custom-actions
diff options
context:
space:
mode:
authortzumainn <tzumainn@redhat.com>2017-08-31 04:38:38 -0400
committerTomas Sedovic <tomas@sedovic.cz>2017-08-31 10:38:38 +0200
commit8008fd49227a750a6a5cf5cae8700f0fe0970bce (patch)
tree4eaf0648c0d6c32c7f0d8e8aaff6cee4027e6acd /playbooks/provisioning/openstack/custom-actions
parent845bae93f8bbf489fbc9508ae98237467b1ce6e1 (diff)
downloadopenshift-8008fd49227a750a6a5cf5cae8700f0fe0970bce.tar.gz
openshift-8008fd49227a750a6a5cf5cae8700f0fe0970bce.tar.bz2
openshift-8008fd49227a750a6a5cf5cae8700f0fe0970bce.tar.xz
openshift-8008fd49227a750a6a5cf5cae8700f0fe0970bce.zip
Add custom post-provision playbook for adding yum repos (#697)
* Add custom post-provision playbook for adding yum repos * fixed formatting issues * requested corrections and formatting changes
Diffstat (limited to 'playbooks/provisioning/openstack/custom-actions')
-rw-r--r--playbooks/provisioning/openstack/custom-actions/add-yum-repos.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/playbooks/provisioning/openstack/custom-actions/add-yum-repos.yml b/playbooks/provisioning/openstack/custom-actions/add-yum-repos.yml
new file mode 100644
index 000000000..ffebcb642
--- /dev/null
+++ b/playbooks/provisioning/openstack/custom-actions/add-yum-repos.yml
@@ -0,0 +1,12 @@
+---
+- hosts: cluster_hosts
+ vars:
+ yum_repos: []
+ tasks:
+ # enable additional yum repos
+ - name: Add repository
+ yum_repository:
+ name: "{{ item.name }}"
+ description: "{{ item.description }}"
+ baseurl: "{{ item.baseurl }}"
+ with_items: "{{ yum_repos }}"