This repository has been archived by the owner on Sep 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
stacks.yml
176 lines (166 loc) · 5.93 KB
/
stacks.yml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
---
# For supported Template params, see: lib/c1/deliver/stacks_config.rb
common_parameters: &common_parameters
OwnerContact: [email protected]
common_inf_parameters: &common_inf_parameters
InfVersion: '{{env.INF_VERSION}}'
SharedInfVersion: v0.0.7
common_tags: &common_tags
OwnerContact: [email protected]
CreatedByURL: '{{env key="BUILD_URL" default="NA"}}'
CreatedBy: '{{env.USER}}'
common_inf_tags: &common_inf_tags
InfVersion: '{{env.INF_VERSION}}'
artifacts:
s3:
bucket: cap1-build-tools-test
group: com.capitalone.stack-depoyment-tool
name: nagios
version: '{{env.APP_VERSION}}'
ami_version: 16.07
stacks:
yamlref:
AMI: 'ami-12345678'
build:
LogGroupName: '{{output stack="SC-00000000-0000000000000000" key="NagiosLogGroupName"}}'
Endpoint: 'https://{{output stack="nagios-elb-build-{{env.STACK_VERSION}}" key="ELBDNS"}}'
E/P: testing
A~B: hello
nagios-elb:
stack_name: nagios-elb-build-{{pipeline_version}}
on_failure: DELETE
parameters:
<<: *common_parameters
Environment: dev
sslCertId: arn:aws:iam::000000000:server-certificate/MyCert
Artifact: '{{s3artifact repo="sandbox"}}'
tags:
<<: *common_tags
Environment: build
nagios-server:
depends_on: nagios-elb
stack_name: nagios-server-build-{{pipeline_version}}-v{{env.INF_VERSION}}
stack_name_prefix: nagios-server-build-{{pipeline_version}}-v
on_failure: DELETE
parameters:
<<: *common_parameters
<<: *common_inf_parameters
Environment: dev
InstanceType: t2.micro
ArtifactRepo: '{{env.ARTIFACT_REPO default="snapshot"}}'
notificationSNSARN: '{{output stack="SC-000000000-000000000000000000" key="snsARN"}}'
instanceProfileARN: '{{output stack="SC-000000000-000000000000000000" key="instanceProfileARN"}}'
NagiosLogGroupName: '{{output stack="SC-000000000-000000000000000000" key="NagiosLogGroupName"}}'
ELBNAME: '{{output stack="nagios-elb-build-{{env.STACK_VERSION}}" key="ELBNAME"}}'
NagiosSNS: '{{output stack="nagios-elb-build-{{pipeline_version}}" key="STACKSNS"}}'
tags:
<<: *common_tags
<<: *common_inf_tags
Environment: build
dev:
Endpoint: 'https://{{output stack="nagios-elb-dev-testor" key="ELBDNS"}}'
nagios-elb:
stack_name: nagios-elb-dev-{{env.USER}}
on_failure: DELETE
parameters:
<<: *common_parameters
Environment: dev
sslCertId: arn:aws:iam::00000000:server-certificate/MyCert
tags:
<<: *common_tags
Environment: dev
nagios-server:
stack_name: nagios-server-dev-{{env.USER}}-v{{env.INF_VERSION}}
stack_name_prefix: nagios-server-dev-{{env.USER}}-v
on_failure: DELETE
parameters:
<<: *common_parameters
<<: *common_inf_parameters
Environment: dev
InstanceType: t2.micro
ChefSoloTarballRepo: WildWildWest
notificationSNSARN: arn:aws:sns:us-east-1:00000000:SC-00000000-0000000000000000-AlertSNS-00000000
instanceProfileARN: SC-00000000-0000000000000000-NagiosServerInstanceProfile-00000000
LogGroupName: SC-00000000-0000000000000000-NagiosLogGroup-00000000
NagiosELB: '{{output stack="nagios-elb-dev-{{env.USER}}" key="ELBNAME"}}'
NagiosSNS: '{{output stack="nagios-elb-dev-{{env.USER}}" key="STACKSNS"}}'
tags:
<<: *common_tags
<<: *common_inf_tags
Environment: dev
qa:
nagios-elb:
stack_name: nagios-elb-qa
on_failure: ROLLBACK
parameters:
<<: *common_parameters
Environment: qa
sslCertId: arn:aws:iam::00000000:server-certificate/MyCert
tags:
<<: *common_tags
Environment: qa
nagios-server:
stack_name: nagios-server-qa-v{{env.INF_VERSION}}
stack_name_prefix: nagios-server-qa-v
on_failure: DELETE
parameters:
<<: *common_parameters
<<: *common_inf_parameters
Environment: qa
InstanceType: t2.micro
ChefSoloTarballRepo: WildWildWest
notificationSNSARN: arn:aws:sns:us-east-1:00000000:SC-00000000-0000000000000000-AlertSNS-00000000
instanceProfileARN: SC-00000000-0000000000000000-NagiosServerInstanceProfile-00000000
LogGroupName: SC-00000000-0000000000000000-NagiosLogGroup-00000000
NagiosELB: '{{output stack="nagios-elb-qa" key="ELBNAME"}}'
NagiosSNS: '{{output stack="nagios-elb-qa" key="STACKSNS"}}'
tags:
<<: *common_tags
<<: *common_inf_tags
Environment: qa
prod:
nagios-elb:
stack_name: nagios-elb-prod
on_failure: ROLLBACK
parameters:
<<: *common_parameters
Environment: prod
sslCertId: arn:aws:iam::00000000:server-certificate/MyCert
tags:
<<: *common_tags
Environment: prod
nagios-server:
stack_name: nagios-server-prod-v{{env.INF_VERSION}}
stack_name_prefix: nagios-server-prod-v
on_failure: DELETE
parameters:
<<: *common_parameters
<<: *common_inf_parameters
Environment: prod
InstanceType: m3.medium
ChefSoloTarballRepo: WildWildWest
notificationSNSARN: TBD
instanceProfileARN: TBD
LogGroupName: TBD
NagiosELB: '{{output stack="nagios-elb-prod" key="ELBNAME"}}'
NagiosSNS: '{{output stack="nagios-elb-prod" key="STACKSNS"}}'
tags:
<<: *common_tags
<<: *common_inf_tags
Environment: prod
issue63:
nagios-server:
template: issue_63_cft
stack_name: c1d-test-issue-63
stack_name_prefix: c1d-test-issue-63
on_failure: DELETE
parameters:
#<<: *common_parameters
#<<: *common_inf_parameters
AMI: "ami-12345678"
Environment: '{{env.DEPLOY_ENV}}'
InstanceType: '{{env key="INSTANCE_TYPE" default="t2.large"}}'
tags:
#<<: *common_tags
#<<: *common_inf_tags
Environment: prod