-
Notifications
You must be signed in to change notification settings - Fork 72
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
make sumaform terraform v11 compatible #387
Conversation
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.
- see inline comments
modules/libvirt/pts/minion-dump.mp
andmodules/openstack/pts/minion-dump.mp
binary files should not change
README_ADVANCED.md
Outdated
@@ -1,10 +1,10 @@ | |||
# Advanced `main.tf` configurations | |||
|
|||
## Changing product versions | |||
## Changing product version |
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.
versions was OK here
README_ADVANCED.md
Outdated
@@ -191,11 +191,11 @@ module "min" { | |||
} | |||
``` | |||
|
|||
## Change the base OS for supported SUSE Manager versions | |||
## Change the base OS for supported SUSE Manager product_versions |
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.
versions was OK here
README_ADVANCED.md
Outdated
|
||
You can specifiy a base OS for `suse_manager` modules by specifying an `image` variable. There is a default selection if nothing is specified. Please note that not all SUSE Manager versions support all OSs, refer to official documentation to select a compatible OS. In particular, `opensuse423` can presently only be used for the `head` version. | ||
You can specifiy a base OS for `suse_manager` modules by specifying an `image` variable. There is a default selection if nothing is specified. Please note that not all SUSE Manager product_versions support all OSs, refer to official documentation to select a compatible OS. In particular, `opensuse423` can presently only be used for the `head` product_version. |
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.
Please double check all documentation or other non-code places. product_versions
should be only changed in code, examples, and explicit references to code.
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.
yop
variable "version" { | ||
description = "A valid SUSE Manager version (eg. 3.0-nightly, head) see README_ADVANCED.md" | ||
variable "product_version" { | ||
description = "A valid SUSE Manager product_version (eg. 3.0-nightly, head) see README_ADVANCED.md" |
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.
version was correct here
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.
@moio ok i can check the stuff, is really not easy to check all the stuff manually 🤕
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.
Almost there:
- one last inline comment
- please update
required_version = ">= 0.10.7"
blocks throughout the codebase to request Terraform 0.11.x (we want users to upgrade to that version and we are already pretty certain 0.12 will break sumaform at this point)
README_ADVANCED.md
Outdated
Some modules have a ``version`` variable that determines the software version. Specifically: | ||
* in `suse_manager`, `suse_manager_proxy` etc. `version` determines the SUSE Manager product version, | ||
* in `minion`, `client`, etc. `version` determines the SUSE Manager Tools version. | ||
Some modules have a ``product_version`` variable that determines the software product version. Specifically: |
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.
Double backticks here
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.
I could not find any problem, but I'd strongly suggest using grep with the branch used for the PR, to see that we are not missing anything :-)
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.
Two more corner cases caught.
Apart from those this PR could be merged but we can't do that before having a terraform package that builds on Leap 15. Just too many people are on that distro.
I am fine with a patch that disables that test.
main.tf.openstack-testsuite.example
Outdated
@@ -1,5 +1,5 @@ | |||
provider "openstack" { | |||
version = "~> 1.2" | |||
product_version = "~> 1.2" |
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.
This is wrong, as version
is an internal variable of the provider in this case.
main.tf.openstack.example
Outdated
@@ -1,5 +1,5 @@ | |||
provider "openstack" { | |||
version = "~> 1.2" | |||
product_version = "~> 1.2" |
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.
Same here
915de64
to
93121ba
Compare
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
with pessimistic operator
065fcd9
to
be4b39b
Compare
in bridged mode we need it, so is better to use it always
2d8d99b
to
740c5ab
Compare
This pr is not taking care of the update to v11 , it is a prerequisite step that we need to implement.
fix #285
Left to do:
gitlab
https://gitlab.suse.de/galaxy/sumaform-test-runner/merge_requests/41
backup centos7 or sles img
communication: