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

Added location role #1623

Merged
merged 4 commits into from
Jun 26, 2023
Merged

Added location role #1623

merged 4 commits into from
Jun 26, 2023

Conversation

alawong
Copy link
Contributor

@alawong alawong commented Jun 8, 2023

Added a location role which loops through a list of locations foreman_locations and creates them on Satellite server using the foreman location module.

Copy link
Member

@evgeni evgeni left a comment

Choose a reason for hiding this comment

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

Thanks Alan! And sorry it took so long to get this reviewed!

Overall, this looks good. I posted two comments inline, but nothing major.

One thing that is missing right now are tests. Given our test suite is a bit involved, I can understand if you say that you'd prefer not to touch even more things right now (and would offer you to just do the tests for you), or, if you want of course, you could try to write tests and I'll help you getting there? Absolutely up to you.

roles/locations/tasks/main.yml Show resolved Hide resolved
theforeman.foreman.locations
===================================

This role creates and manages Satellite locations.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
This role creates and manages Satellite locations.
This role creates and manages Foreman locations.

(the branding happens automatically, here we keep the Foreman name)

@alawong
Copy link
Contributor Author

alawong commented Jun 23, 2023

I have made the requested changes, and added the test playbook named locations_role.yml. Please review!

@evgeni evgeni merged commit 5beff7c into theforeman:develop Jun 26, 2023
17 of 18 checks passed
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