Skip to content

Conversation

@mohitrajain
Copy link
Contributor

@mohitrajain mohitrajain commented Dec 23, 2025

Rename ansible templates for wiab-staging to make them generic
Add wiab-staging VMs ansible inventory template to be populated by wiab-staging-provision.yml playbook
Add ansible playbook for wiab-staging VM provisioning
Add ansible inventory for playbook wiab-staging-provision.yml

Change type

  • Fix
  • Feature
  • Documentation
  • Security / Upgrade

Basic information

  • THIS CHANGE REQUIRES A DEPLOYMENT PACKAGE RELEASE
  • THIS CHANGE REQUIRES A WIRE-DOCS RELEASE

Testing

  • I ran/applied the changes myself, in a test environment.
  • The CI job attached to this repo will test it for me.

Offline Build CI (label-based)

Add one or more labels to trigger offline builds:

  • build-default - Full production build (ansible, terraform, all packages)
  • build-demo - Demo/WIAB build
  • build-min - Minimal build (fastest, essential charts only)
  • build-all - Run all three builds

Note: No builds run by default. Add a label to trigger CI.

Tracking

  • I added a new entry in an appropriate subdirectory of changelog.d
  • I mentioned this PR in Jira, OR I mentioned the Jira ticket in this PR.
  • I mentioned this PR in one of the issues attached to one of our repositories.

Knowledge Transfer

  • An Asciinema session is attached to the Jira ticket.

Motivation

Objective

Reason

Use case

@mohitrajain mohitrajain requested review from a team and julialongtin as code owners December 23, 2025 16:39
@mohitrajain mohitrajain changed the title Wpb 21356 ansible vm provisioning Wpb 21356 wiab-staging: ansible prepare host for vm provisioning Dec 28, 2025
@mohitrajain mohitrajain changed the title Wpb 21356 wiab-staging: ansible prepare host for vm provisioning wpb-22439 wiab-staging: ansible prepare host for vm provisioning Jan 5, 2026
- lsof
- net-tools
- rsyslog
- screen
Copy link
Contributor

Choose a reason for hiding this comment

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

we don't really use screen anymore, you can remove it

@@ -0,0 +1,315 @@
- hosts: deploy_node
vars:
artifact_hash: d5c1e25ac25d9cf4ade2f00c12f0cd05371b8616
Copy link
Contributor

Choose a reason for hiding this comment

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

this is hardcoded, is there a documentation in other PRs that states this should be changed/updated ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

register: gateway_name

- name: Generate inventory.yaml with actual VM IPs from .vm-env
shell: |
Copy link
Contributor

Choose a reason for hiding this comment

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

this can probably go into its own script and then execute it here, will be more readable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I kept it here as an ansible task as it removes the dependency from the script being available on the node and, this script isn't used for any other purpose so kept it as task here.


- name: set permissions inside wire-server-deploy via shell command (fails when using ansible directive)
shell:
cmd: sudo chmod -R 0775 "{{ deploy_dir }}"; sudo chown -R demo:demo /home/demo
Copy link
Contributor

Choose a reason for hiding this comment

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

you put ssh keys into wire directory in the previous steps and you are giving it 775 permissions with this
also, why are you changing ownership on the /home/demo directory?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am changing the permissions for the deploy_dir=/home/demo/wire-server-deploy, for virsh to be able to access it and ensure when extracting the bundle, all files have accessible permissions. The SSH keys would be created post this task in Start VMs on the node task.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 8, 2026

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.

3 participants