-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow user templates for generation during terraform lifecycle (#64)
Templates can now be added to an infrastructure file under the `templates` key, which is a list of template file names, and it will be generated after all resources have been created at the root directory. Primarily needed for generating inventory files for ansible. Tags are recommended to assist in most templating as other outputs might vary by provider and/or service. * Templates * To overcome the limitations of `templatefile()` not allowing for a new file to be referenced in the same run, we copy all templates into `<project_path>/templates/` and update the users template list to point to the new file with `template/<templatefile>`. * generated files stored in the project root directory * Outputs * `local.outputs` created and reused for our various outputs * per server type outputs were removed since it requires jinja2 * `servers.yml` contains the same values that will generate the templates * Logs updated to allow for overrides with `ET_` and displayed under help
- Loading branch information
Showing
16 changed files
with
322 additions
and
160 deletions.
There are no files selected for viewing
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
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
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.