-
Notifications
You must be signed in to change notification settings - Fork 5
Configure controller host entry via nixos option #15
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
Conversation
| { | ||
| options.openstack = { | ||
| controllerIP = mkOption { | ||
| type = types.str; |
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.
| type = types.str; | |
| type = types.nonEmptyStr; |
phip1611
left a comment
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 apart from a few nits
Previously, a user not using the testing modules had to set the hosts entry himself, while with the new module we get an error if that controller host is not configured. On-behalf-of: SAP stefan.kober@sap.com
in both compute and controller. This way, a user of any of this modules has to set an IP for the controller. Otherwise, the services cannot function properly. On-behalf-of: SAP stefan.kober@sap.com
We set some actual controller IP via the new module, allowing us to remove the custom extraHosts entry that was used previously. On-behalf-of: SAP stefan.kober@sap.com
parthy
left a comment
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.
Looks good to me!
When not using the
testingmodules, the openstack systemd services could not come up because they couldn't reach thecontroller. The user had to set some hosts entry himself so thatcontrolleris reachable via name.We add some nixos option to configure a
controllerIPwhich will result in the proper hosts entry being made by nix. Further, a nice error is now printed if thecontrollerIPis not set.See #12