summaryrefslogtreecommitdiffstats
path: root/playbooks/openstack/custom-actions/add-rhn-pools.yml
diff options
context:
space:
mode:
authorTomas Sedovic <tomas@sedovic.cz>2017-11-07 14:34:03 +1100
committerTomas Sedovic <tomas@sedovic.cz>2017-11-07 14:34:03 +1100
commit85181ea469ed5f541cbac6f73aefc134526aca8d (patch)
tree75fc5b7f1ff9002d67dbc8091070c7c6d334f8b9 /playbooks/openstack/custom-actions/add-rhn-pools.yml
parent6f4d509817f200ec2a273a097f4f048da5997925 (diff)
downloadopenshift-85181ea469ed5f541cbac6f73aefc134526aca8d.tar.gz
openshift-85181ea469ed5f541cbac6f73aefc134526aca8d.tar.bz2
openshift-85181ea469ed5f541cbac6f73aefc134526aca8d.tar.xz
openshift-85181ea469ed5f541cbac6f73aefc134526aca8d.zip
Move the OpenStack playbooks
We move them from `playbooks/provisioning/openstack` to `playbooks/openstack` to mirror `playbooks/aws`.
Diffstat (limited to 'playbooks/openstack/custom-actions/add-rhn-pools.yml')
-rw-r--r--playbooks/openstack/custom-actions/add-rhn-pools.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/playbooks/openstack/custom-actions/add-rhn-pools.yml b/playbooks/openstack/custom-actions/add-rhn-pools.yml
new file mode 100644
index 000000000..d17c1e335
--- /dev/null
+++ b/playbooks/openstack/custom-actions/add-rhn-pools.yml
@@ -0,0 +1,13 @@
+---
+- hosts: cluster_hosts
+ vars:
+ rhn_pools: []
+ tasks:
+ - name: Attach additional RHN pools
+ become: true
+ with_items: "{{ rhn_pools }}"
+ command: "/usr/bin/subscription-manager attach --pool={{ item }}"
+ register: attach_rhn_pools_result
+ until: attach_rhn_pools_result.rc == 0
+ retries: 10
+ delay: 1