Skip to content

Ansible and testbedrun QOL#107

Open
mlanger86 wants to merge 3 commits into
ait-testbed:mainfrom
mlanger86:main
Open

Ansible and testbedrun QOL#107
mlanger86 wants to merge 3 commits into
ait-testbed:mainfrom
mlanger86:main

Conversation

@mlanger86

@mlanger86 mlanger86 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor
  • Removed openstack.yml from inventory after the switch to static hosts file
  • added --auto-approve to destroy and apply at the testbedrun script for convenience
  • Renamed function "restart_instance" to "recreate_instance" for clarity

@mlanger86 mlanger86 requested a review from whotwagner June 19, 2026 11:00
Comment on lines 69 to 72
p = subprocess.run(['terragrunt', 'destroy', '--auto-approve', '--target', f"openstack_compute_instance_v2.{instance}"])
if p.returncode == 0:
p = subprocess.run(['terragrunt', 'apply'])
p = subprocess.run(['terragrunt', 'apply', '--auto-approve'])
else:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it wouldbe nice if testbrun has a cli-parameter for that with auto-approve=True as default

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done!

@mlanger86 mlanger86 requested a review from whotwagner June 24, 2026 13:18
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