-
Notifications
You must be signed in to change notification settings - Fork 24
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
Conversation
|
# 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 |
There was a problem hiding this comment.
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?
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
Just some tidy up and minor refactoring of ansible vars files. CI should be sufficient for testing.