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

theforeman.foreman.realm theforeman.foreman.domain modules error #1577

Open
lessfoobar opened this issue Mar 23, 2023 · 2 comments
Open

theforeman.foreman.realm theforeman.foreman.domain modules error #1577

lessfoobar opened this issue Mar 23, 2023 · 2 comments

Comments

@lessfoobar
Copy link
Contributor

Those two modules does not follow the organisation, location convention as the other modules, thus they do give error, could they be changed or an alias be added ?

the attributes of those modules are: organisations and locations so when you have the organisation and location set as as module_defaults you are getting an error for not existing option organization

module_defaults:
group/theforeman.foreman.foreman:
username: "{{ management_user }}"
password: "{{ management_password}}"
server_url: "{{ katello_server_url }}"
organization: "{{ organisation_var }}"

@evgeni
Copy link
Member

evgeni commented Mar 23, 2023

Those modules (well, the underlying entities) can belong to multiple locations and organizations and thus only accept the plural form of the parameters.

I am not sure we could add a mapping without make that detail confusing to users, but I'll give it a try

@lessfoobar
Copy link
Contributor Author

hmm I haven't thought of that, its just annoying to provide all those module attributes on every single tasks and add extra fluff to my roles, they just look bigger and its pointless of having all the repetitive attributes on every single module call, Is there a way to set them on role level and not on play level? this way maybe I can separate the ones that require organization from the one that require the plural and call it a day?

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

No branches or pull requests

2 participants