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

Impove group_vars docs and move s390x vars to create-vm role #1361

Merged
merged 3 commits into from
Oct 9, 2023

Conversation

Stringy
Copy link
Collaborator

@Stringy Stringy commented Oct 6, 2023

Description

Just some tidy up and minor refactoring of ansible vars files. CI should be sufficient for testing.

@Stringy Stringy requested a review from a team as a code owner October 6, 2023 15:15
@github-actions
Copy link

github-actions bot commented Oct 6, 2023

Kernel Method Without Collector Time (secs) With Collector Time (secs) Baseline median (secs) Collector median (secs) PValue
ubuntu-os.ubuntu-2004-lts ebpf 252.391 252.963 236.1 234.97 🟢

Comment on lines 8 to 15
# subnet_name: stackrox-ci-sn3
s390x_subnet_id: 02s7-0fca7f4f-7e53-40d5-a087-f8cb5d7ab682
s390x_zone: ca-tor-3
# ssh_key_name: acs-sshkey
s390x_ssh_key_id: r038-fb0260c7-c01d-45c8-8026-7d50042943b9
# vsi_resource_group: stackrox-ci-resource-group
s390x_vsi_resource_group_id: 1a33a6a9bd6e498f8115e9b1064bfa97
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we can group all of these in a s390x dictionary?

Suggested change
s390x_vpc_id: r038-c4f8e233-4b56-44bd-af71-140ebd1664e9
# subnet_name: stackrox-ci-sn3
s390x_subnet_id: 02s7-0fca7f4f-7e53-40d5-a087-f8cb5d7ab682
s390x_zone: ca-tor-3
# ssh_key_name: acs-sshkey
s390x_ssh_key_id: r038-fb0260c7-c01d-45c8-8026-7d50042943b9
# vsi_resource_group: stackrox-ci-resource-group
s390x_vsi_resource_group_id: 1a33a6a9bd6e498f8115e9b1064bfa97
s390x:
vpc_id: r038-c4f8e233-4b56-44bd-af71-140ebd1664e9
# subnet_name: stackrox-ci-sn3
subnet_id: 02s7-0fca7f4f-7e53-40d5-a087-f8cb5d7ab682
zone: ca-tor-3
# ssh_key_name: acs-sshkey
ssh_key_id: r038-fb0260c7-c01d-45c8-8026-7d50042943b9
# vsi_resource_group: stackrox-ci-resource-group
vsi_resource_group_id: 1a33a6a9bd6e498f8115e9b1064bfa97

According to the ansible docs we could then access them with dot notation, i.e: s390x.vpc_id
https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_variables.html#dictionary-variables

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

that is much cleaner, I'll implement it now

Copy link
Collaborator

@Molter73 Molter73 left a comment

Choose a reason for hiding this comment

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

LGTM!

@Stringy Stringy merged commit 60ea575 into master Oct 9, 2023
39 checks passed
@Stringy Stringy deleted the giles/improve-group-vars-docs branch October 9, 2023 12:21
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