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

Fixes #37327 - GUI/API to allow importing/overriding of Ansible variables directly from YAML/JSON #707

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Thorben-D
Copy link
Contributor

This PR adds a new wizard to Configure > Ansible > Variables to allow users to import/override Ansible variables from YAML-files.

Key features:

  • This wizard may also be opened from Configure > Ansible > Roles to directly select a role
  • Variable name, type and default value may be changed in the UI
  • Users may select specific variables to import from a file
  • Should a variable duplicate an already created variable, the user will be warned and if he chooses to proceed, the variable is correctly marked as overridden
  • Methods to import variables from base64-encoded YAML files or JSON are exposed as API endpoints

Note: Currently, from_yaml and from_json are not properly documented. They require a dictionary as a parameter and I am unsure how to handle this with apipie (if it is even supported).

Documentation Pull request: theforeman/foreman-documentation#2941
Depends on: #696

wizard_0
wizard_1
wizard_2

@Thorben-D Thorben-D changed the title Fixes #37327 - GUI/API to allow importing/overriding of Ansible varibles directly from YAML/JSON Fixes #37327 - GUI/API to allow importing/overriding of Ansible variables directly from YAML/JSON Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant