Skip to content

Abstract away Vagrant as the VM provider to speed up subsequent calls#132

Merged
ehelms merged 1 commit intotheforeman:masterfrom
ehelms:add-start-stop-script
Apr 18, 2025
Merged

Abstract away Vagrant as the VM provider to speed up subsequent calls#132
ehelms merged 1 commit intotheforeman:masterfrom
ehelms:add-start-stop-script

Conversation

@ehelms
Copy link
Member

@ehelms ehelms commented Apr 15, 2025

Introduces a script to start and stop VMs and produce a static inventory. This speeds up each call after the fact and creates less reliance on Vagrant.

Copy link
Contributor

@archanaserver archanaserver left a comment

Choose a reason for hiding this comment

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

Since this PR introduces new scripts (start-vms/stop-vms) and changes inventory handling, could we update the README.md file.

mkdir -p inventories
vagrant up $@

./vagrant.py --yaml > inventories/local_vagrant
Copy link
Contributor

Choose a reason for hiding this comment

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

start-vms script currently overwrites inventories/local_vagrant without any checks, should we preserve the existing inventory file when regenerating?

Copy link
Member Author

Choose a reason for hiding this comment

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

Since the intent is that this script controls the creation of these VMs, I do not see a reason to preserve the inventory in any way.

Introduces a script to start and stop VMs and produce a static inventory.
This speeds up each call after the fact and creates less reliance on Vagrant.

Signed-off-by: Eric D. Helms <ericdhelms@gmail.com>
@ehelms ehelms force-pushed the add-start-stop-script branch from 17de3a7 to 62e6583 Compare April 17, 2025 12:02
@ehelms
Copy link
Member Author

ehelms commented Apr 17, 2025

Since this PR introduces new scripts (start-vms/stop-vms) and changes inventory handling, could we update the README.md file.

Updated

Copy link
Contributor

@archanaserver archanaserver left a comment

Choose a reason for hiding this comment

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

LGTM!

@ehelms ehelms merged commit 33d1127 into theforeman:master Apr 18, 2025
4 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