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

Meteor ansible integration #114

Merged
merged 29 commits into from
Apr 10, 2024
Merged

Conversation

HenrithicusGreenson
Copy link
Collaborator

@HenrithicusGreenson HenrithicusGreenson commented Mar 28, 2024

This PR adds the following:

  • Functionality to select an Ansible playbook specified in the config file.
  • Live updating of the list of Ansible playbooks available if the config file is edited while the Meteor server is running.
  • Functionality to run a selected Ansible playbook on a specified host.
  • Logging of the output of the Ansible command on the UI for manual reviewing of output.

HenrithicusGreenson and others added 29 commits March 26, 2024 14:21
prevents blocking caused by .run
Potentially could cause a future issue if new playbooks need to be added, could need
Not really, just not sure what the meteor way of grabbing the selected option from the selection box is so we're rockin with the .closest call
Also added inventory file creation to startup command instead of method call

Also changed structure of inventory file to better reflect what we're actually trying to do.
Updated genisys inventory to include a provisioned field.

Added delete host button to UI w/ functionality.
In light of recent CVEs, having compressed/unauditable files in repo is probably not a good idea.
- Currently doesn't get any output from the ansible commands for some reason, still troubleshooting
@HenrithicusGreenson HenrithicusGreenson marked this pull request as ready for review April 7, 2024 19:55
event.preventDefault()

//Talk to will about the meteor way of doing this:
const selectedOption = $(event.currentTarget)
Copy link
Owner

Choose a reason for hiding this comment

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

JQuery? Where is $ imported from?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

From what I see online it looks like jQuery is included globally by default in Meteor projects.

@HenrithicusGreenson HenrithicusGreenson merged commit b50414c into main Apr 10, 2024
11 checks passed
@HenrithicusGreenson HenrithicusGreenson deleted the meteor-ansible-integration branch April 10, 2024 19:01
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.

4 participants