An open API service indexing awesome lists of open source software.

https://github.com/cycloidio/bootstrap-stacks

Collection of stack templates to be used by customer to create simple functioning stack
https://github.com/cycloidio/bootstrap-stacks

Last synced: about 1 year ago
JSON representation

Collection of stack templates to be used by customer to create simple functioning stack

Awesome Lists containing this project

README

          

# boostrap-stacks

This is a collection of stack templates the users can use to create a small stacks to start using Cycloid.

## How does a template work

The difference from a normal stacks are the following:
- a template stack has in the `.config.yml` the field `template: true`
- you can use `pongo2` templates to conditionally alter the resulting stack

When the user creates a stack from template the BE will pass the following parameters:
- stack_usecase
- stack_author
- stack_canonical
- stack_path
- scs_canonical
- scs_cred_path
- scs_cred_type
- api_url

The relevant files will be rendered with the passed parameters and added to a resulting stack.
The relevant files are the following
- `.config.yml`, `.forms.yml` and `README.md` files
- all the files (not directories) under the `terraform`, `pipeline`, and `ansible` directories
- all the files that have the `stack_usecase` in their path

For example if the `stack_usecase` is `aws` the file `terraform-sample/terraform/aws/variables.tf` is rendered and included in the resulting stack.
While `terraform-sample/terraform/gcp/aws-migation.tf` will not since it is not directly under the `terrafor` directory and the usecase do not appear it the path to the file but in the filename.