-
Notifications
You must be signed in to change notification settings - Fork 18
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
Template terraform using a basic inventory #238
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Superseded by #240 which uses inventory_hostname and inventory_hostname.clustername.tld to keep inventory_hostnames as resolvable names. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently the "inputs" to the cluster are split between TF and ansible variables. Moving everything to ansible - by templating TF from ansible - unifies inputs, avoiding problems where e.g. userdata really needs inputs from both ansible and terraform.
Two differences from the CaaS approach (which I'd envisage moving to this once AWX goes and CaaS is merged with this):
environments/{common,arcus}/cluster.yml
define the infrastructure, and are actual ansible inventory files. This:all
groupvars). This enables simple variation between hosts e.g. for volumes, userdata, networks/ports. It will in future (with some changes to the OpenHPC role) allow environment-specific image build without having to provision a cluster first to define e.g. the slurm control nodename.community.general.terraform
role is wrapped to (by-default) require user confirmation before making changes.This
refactor/templatef2
branch makes modifications so that inventory_hostname != hostname. Note prom scrapes are still broken/not fixed for this.