-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathclusterless-basic.yaml
55 lines (48 loc) · 2.45 KB
/
clusterless-basic.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
prompts:
- $cndi.get_block(https://raw.githubusercontent.com/polyseam/cndi/main/blocks/common/clusterless/core-prompts.yaml):
{}
- $cndi.get_block(https://raw.githubusercontent.com/polyseam/cndi/main/blocks/{{ $cndi.get_prompt_response(deployment_target_provider) }}/core-prompts.yaml):
{}
- name: visitor
type: Input
message: "Who would you like to greet?"
default: "World"
required: true
outputs:
cndi_config:
cndi_version: v2
project_name: "{{ $cndi.get_prompt_response(project_name) }}"
provider: "{{ $cndi.get_prompt_response(deployment_target_provider) }}"
distribution: "clusterless"
infrastructure:
terraform:
variable:
VISITOR:
type: "string"
description: "The name of the visitor"
output:
greeting:
value: "Hello, ${upper(var.VISITOR)}!"
env:
$cndi.get_block(https://raw.githubusercontent.com/polyseam/cndi/main/blocks/common/git-credentials-{{ $cndi.get_prompt_response(git_credentials_mode) }}-env.yaml):
{}
$cndi.get_block(https://raw.githubusercontent.com/polyseam/cndi/main/blocks/{{ $cndi.get_prompt_response(deployment_target_provider) }}/env.yaml):
{}
$cndi.get_block(https://raw.githubusercontent.com/polyseam/cndi/main/blocks/common/clusterless/env.yaml):
{}
$cndi.comment(configure_greeter): "Change who you are greeting:"
TF_VAR_VISITOR: "{{ $cndi.get_prompt_response(visitor) }}"
readme:
project_name: "# {{ $cndi.get_prompt_response(project_name) }}"
$cndi.get_string(https://raw.githubusercontent.com/polyseam/cndi/main/blocks/common/clusterless/core-readme.md):
{}
$cndi.get_string(https://raw.githubusercontent.com/polyseam/cndi/main/blocks/{{ $cndi.get_prompt_response(deployment_target_provider) }}/core.md):
{}
$cndi.get_string(https://raw.githubusercontent.com/polyseam/cndi/main/blocks/{{ $cndi.get_prompt_response(deployment_target_provider) }}/{{ $cndi.get_prompt_response(deployment_target_distribution) }}.md):
{}
basic: |
# Basic Clusterless Deployment Guide
This Template provides the essential building blocks of a CNDI Clusterless project,
and can be extended to meet any need. This Template is not Kubernetes-based.
This clusterless Template is instead designed to be used for situations which do not require a cluster.
The benefit of using CNDI in this way you keep the same operating model around deployment and IaC.