summaryrefslogtreecommitdiffstats
path: root/playbooks/provisioning/openstack/custom-actions
diff options
context:
space:
mode:
authorTlacenka <tlacencin@gmail.com>2017-10-12 18:09:39 +0200
committerTomas Sedovic <tomas@sedovic.cz>2017-10-12 18:09:39 +0200
commit79b5ef66d15b19a232dbf92e246713cf18f3cc8c (patch)
tree9d96f61637684130e7b5942248c114fe865db99a /playbooks/provisioning/openstack/custom-actions
parent89b84815daec3b4d8876a979f15c36500b835c11 (diff)
downloadopenshift-79b5ef66d15b19a232dbf92e246713cf18f3cc8c.tar.gz
openshift-79b5ef66d15b19a232dbf92e246713cf18f3cc8c.tar.bz2
openshift-79b5ef66d15b19a232dbf92e246713cf18f3cc8c.tar.xz
openshift-79b5ef66d15b19a232dbf92e246713cf18f3cc8c.zip
Attach additional RHN Pools (post-provision custom action) (#753)
* README, add-rhn-pools.yml: Add new custom post-provision playbook that attaches additional RHN pools - also mention this example in the contrib README * added become true * README update
Diffstat (limited to 'playbooks/provisioning/openstack/custom-actions')
-rw-r--r--playbooks/provisioning/openstack/custom-actions/add-rhn-pools.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/playbooks/provisioning/openstack/custom-actions/add-rhn-pools.yml b/playbooks/provisioning/openstack/custom-actions/add-rhn-pools.yml
new file mode 100644
index 000000000..d17c1e335
--- /dev/null
+++ b/playbooks/provisioning/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