-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from antonym/switch_rhel_registration
Switch to using Ansible for node registration
- Loading branch information
Showing
4 changed files
with
39 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
playbooks/osp/13/overcloud/ansible-osp-registration.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
- name: Register OSP 13 repos on Nodes | ||
hosts: Controller:Compute:CephStorage:SwiftStorage | ||
become: yes | ||
vars: | ||
repos: | ||
- rhel-7-server-rpms | ||
- rhel-7-server-extras-rpms | ||
- rhel-7-server-rh-common-rpms | ||
- rhel-ha-for-rhel-7-server-rpms | ||
- rhel-7-server-openstack-13-rpms | ||
tasks: | ||
- name: Register system | ||
redhat_subscription: | ||
username: "{{ redhat_username }}" | ||
password: "{{ redhat_password }}" | ||
pool_ids: "{{ redhat_pool_id }}" | ||
- name: Disable all repos | ||
command: "subscription-manager repos --disable *" | ||
- name: Enable Controller node repos | ||
command: "subscription-manager repos --enable {{ '{{' }} item {{ '}}' }}" | ||
with_items: "{{ '{{' }} repos {{ '}}' }}" | ||
|
||
- name: Register Ceph Repos | ||
hosts: Controller:CephStorage | ||
become: yes | ||
vars: | ||
repos: | ||
- rhel-7-server-rhceph-3-mon-rpms | ||
tasks: | ||
- name: Enable Ceph Repos on Controller and Ceph nodes | ||
command: "subscription-manager repos --enable {{ '{{' }} item {{ '}}' }}" | ||
with_items: "{{ '{{' }} repos {{ '}}' }}" |
27 changes: 0 additions & 27 deletions
27
playbooks/osp/13/overcloud/environment-rhel-registration.yaml.j2
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters