Skip to content

Collection of stack blueprint to be used by customer to create simple stacks

Notifications You must be signed in to change notification settings

cycloidio/stack-blueprints

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 

Repository files navigation

Stack blueprints

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

How does a blueprint 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 the Go text/template templates to conditionally alter the resulting stack. In order to not interfere with other templating systems, like Ansible, the delimiters for the template are not the standard ones but ($> and <$).

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.

About

Collection of stack blueprint to be used by customer to create simple stacks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%