Skip to content

Commit

Permalink
Added Capsule z-stream upgrade support
Browse files Browse the repository at this point in the history
Closed #3
  • Loading branch information
sthirugn committed May 4, 2018
1 parent a10585f commit 297f787
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Install/upgrade a Satellite6 Capsule server using ansible playbooks.
#### Supported Scenaios: ####
- Capsule 6.2/6.3 installation.
- Capsule 6.2 to 6.3 upgrade.
- Capsule z-stream upgrade

#### Setup ####
On the Satellite server:
Expand Down Expand Up @@ -48,7 +49,11 @@ On the Satellite server:
```console
ansible-playbook capsule-install-playbook.yml
```
* Capsule Upgrade:
* Capsule Upgrade (y-stream):
```console
ansible-playbook capsule-upgrade-playbook.yml
```
* Capsule Upgrade (z-stream):
```console
ansible-playbook capsule-zupgrade-playbook.yml
```
1 change: 1 addition & 0 deletions capsule-upgrade-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
vars:
capsule_install: false
capsule_upgrade: true
z_stream_upgrade: false
remote_user: root
roles:
- create_certs
Expand Down
12 changes: 12 additions & 0 deletions capsule-zupgrade-playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
- hosts: capsules
vars_files:
- vars.yml
vars:
capsule_install: false
capsule_upgrade: true
z_stream_upgrade: true
remote_user: root
roles:
- capsule_upgrade
- capsule_check
5 changes: 5 additions & 0 deletions roles/capsule_upgrade/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@

- name: Run capsule-installer command
command: satellite-installer --scenario capsule --upgrade --foreman-proxy-content-certs-tar /certs/{{ inventory_hostname }}-certs.tar --certs-update-all --certs-regenerate true --certs-deploy true
when: capsule_version == 6.3 and not z_stream_upgrade

- name: Run capsule-installer command
command: satellite-installer --scenario capsule --upgrade
when: capsule_version == 6.2 or z_stream_upgrade
1 change: 1 addition & 0 deletions vars.sample.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
capsule_version: 6.3
z_stream_upgrade: false

# Applicable only for Capsule install
satellite_org_label: changeme
Expand Down

0 comments on commit 297f787

Please sign in to comment.