Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible Tower Deployment Role for Openshift #584

Merged
merged 15 commits into from
Mar 9, 2021
Merged

Conversation

jfilipcz
Copy link
Contributor

@jfilipcz jfilipcz commented Mar 4, 2021

What does this PR do?

This PR is changing the way we deploy Tower to Openshift, in favor of using Red Hat provided Tower installer.

How should this be tested?

Please see test directory for instructions and test inventory

Is there a relevant Issue open for this?

N/A

Other Relevant info, PRs, etc.

N/A

People to notify

cc: @redhat-cop/infra-ansible

jfilipcz and others added 4 commits March 4, 2021 14:11
… resulting in partial Tower installation failure

* Added automatic retrieval of OCP Token based on username/password
* Cleanup of inventory template
* Yamllint fixes
* README update
* defaults and test defaults update
@jfilipcz jfilipcz marked this pull request as ready for review March 5, 2021 16:06
@oybed oybed self-requested a review March 5, 2021 16:11
Copy link
Contributor

@oybed oybed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall great job - this role seems to be working great, and I've tested it in many ways with a variety of inventory variables.

I submitted a PR for your PR to hep with some additional clean-up/nitpick changes. In addition, there's one inline comment.

However, the bigger item may be to keep files from the installer in this repo - not sure I agree with that approach. That fix is (hopefully) only needed for very short term, so I'd rather we maintain a .zip file locally some where with that change and just point to that .zip file at install time instead of adding it here. We can discuss offline on Monday.

|openshift_token|Openshift token|yes(either that or password)||
|admin_user|Tower admin username|yes|"admin"|
|admin_password|Tower admin user password|yes|"admin"|
|secret_key|Tower secret key|yes|"abcdefgh"|

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quite a few entries missing here - e.g.: pg_*,openshift_pg_*, and a few others. Please update per your defaults file and otherwise what the tasks and template calls for.

Copy link
Contributor

@oybed oybed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@oybed oybed merged commit a4ac754 into redhat-cop:main Mar 9, 2021
jfilipcz added a commit to jfilipcz/infra-ansible that referenced this pull request Mar 16, 2021
…plied installer

Lint fixes

* Added workaround for Postgre Migration taking longer than expected, resulting in partial Tower installation failure
* Added automatic retrieval of OCP Token based on username/password
* Cleanup of inventory template
* Yamllint fixes
* README update
* defaults and test defaults update

Add a tower subscription from manifest.zip (redhat-cop#581)

* first pass at adding a tower subscription from manifest.zip

* Fix comma in template lookup

* Allow configuration of retries/delay and update README

Ansible tower updates (redhat-cop#582)

* Updated READMEs and added a new 'wait' role

* Updated README

* Updated READMEs

Clean-up and nitpick changes

Clean-up

Readme cleanup

Yamllint fix

Condition fix for Token retrieval

Yamllint fix

Added support for overwriting certain files within the Installer with ansible_customization_file

Files cleanup

Update openshift_retrieve_token.yml

enabling `no_log` for the `oc login` command

Update tower.yml

removing "dead" code

Ansible Tower Deployment Role for Openshift (redhat-cop#584)

* Rewrite of Ansible Tower Openshift deployment role to use Red Hat supplied installer

* Lint fixes

* * Added workaround for Postgre Migration taking longer than expected, resulting in partial Tower installation failure
* Added automatic retrieval of OCP Token based on username/password
* Cleanup of inventory template
* Yamllint fixes
* README update
* defaults and test defaults update

* Clean-up and nitpick changes

* Clean-up

* Readme cleanup

* Yamllint fix

* Condition fix for Token retrieval

* Yamllint fix

* Added support for overwriting certain files within the Installer with ansible_customization_file

* Files cleanup

* Update openshift_retrieve_token.yml

enabling `no_log` for the `oc login` command

* Update tower.yml

removing "dead" code

Co-authored-by: Øystein Bedin <bedin@redhat.com>
Co-authored-by: Øystein Bedin <oybed@users.noreply.github.com>

Initial molecule test for config-timezone (redhat-cop#586)

* Initial molecule test for timezone

* Remove fedora test for now

* Remove debug statement

Updated docker image README (redhat-cop#583)

* Updated docker image README

* Fixing lint errors

Co-authored-by: Tyler Auerbeck <tauerbec@redhat.com>

Add conditional for credentials managed by tower (redhat-cop#588)

* add conditional for credentials managed by tower

* Add note to README about credential cleanup

Adding option to serve ansible tower .zip file locally (redhat-cop#585)

* Adding option to serve ansible tower .zip file locally

* Adding option to serve ansible tower .zip file locally

* Adding option to serve ansible tower .zip file locally

* Update README.md

Fixing "broken" URL for example value

Adding support for automatic deployment of PostgreSQL PVC

Improved readiness check for PVC

Adding support for automatic deployment of PostgreSQL PVC

Improved readiness check for PVC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants