This repository has been archived by the owner on Apr 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.yml.sample
268 lines (226 loc) · 9.74 KB
/
config.yml.sample
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
# ******************************************** #
# Claranet Cloud Deploy - sample Configuration #
# ******************************************** #
# Mandatory parameters
# ====================
# Local Ghost path
ghost_root_path: /usr/local/share/ghost
# Web Ghost URL
ghost_base_url: https://customer.cloud-deploy.io
# AWS SES credentials used to send mail notifications
ses_settings:
aws_access_key: XXXXXXXXXXXXXXXXXX
aws_secret_key: XXXXXXXXXXXXXXXXXX
mail_from: no-reply@cloud-deploy.io
region: eu-west-1
# AWS S3 bucket used to store all Ghost produced artefacts
bucket_s3: ghost-packages-eu-west-1-123456
bucket_region: eu-west-1
# Container options
# * Set a LXD endpoint to download LXC images from another registry (https://lxd.ghost.morea.fr:8443 by default)
#
#container:
## Use True to enable LXD container manager
# enabled: False
## Also works with remote LXD compliant endpoints, e.g. https://cloud-images.ubuntu.com/daily
# endpoint: https://lxd.ghost.morea.fr:8443
## Define the connection and read timeout when working with a remote endpoint (10s by default for both)
# timeout: 10
## Prevent destruction of containers after a buildimage or a deployment for debugging purpose (should not be enabled on a normal basis to avoid dangling containers)
# debug: False
# Configuration manager options
features_provisioners:
salt: # salt by default, might be ansible
git_repo: git@bitbucket.org:morea/morea-salt-formulas.git # default value if type is 'salt'
git_revision: master
# Salt additional pillar file to load
# Optional, default:
#salt_additional_pillar: None
# Salt global inventory url, mapped to Git revision by default, but can be fully overrided
# Optional, default:
#salt_inventory_url: https://inventory.cloudeploy.io/salt/{git_revision}/morea-salt-formulas.json
ansible:
git_repo: git@bitbucket.org:morea/ansible-galaxy-requirements.git
git_revision: master
# Base playbook files path, can be absolute or relative to ghost root dir
#base_playbook_file: ansible-playbook-ghost-common/ghost-common.yml
#base_playbook_requirements_file: ansible-playbook-ghost-common/requirements.yml
# Ansible Galaxy requirements file name can add additional path for example (public/requirements.yml)
# Optional, default:
#ansible_galaxy_requirements_path: requirements.yml
# Ansible global inventory url, mapped to Git revision by default, but can be fully overrided
# Optional, default:
#ansible_role_inventory_url: https://inventory.cloudeploy.io/ansible/{git_revision}/requirements.json
# Packer should install recipe package (salt minion or ansible) when backing Image
# Optional, default:
#skip_provisioner_bootstrap: True
# Provisioner log level (error, warning, info, debug, trace)
# Optional, default:
#provisioner_log_level: info
# Endpoints
# =========
# Need to be set when used with docker-compose (docker link use DNS to map containers)
api_base_url: http://localhost:5000
redis_host: localhost
mongo_host: localhost
# Notifications - events monitoring API endpoint
#notification_endpoint: https://status.cloud-deploy.io/event
#notification_endpoint: http://bastion.local:8000
# SSH Keys parameters
# ===================
#
# Depending on the desired use case, set the `key_path` to one of the following:
#
# * a single key path if all EC2 instances in all regions use the same key
#
# key_path: /home/admin/key/client_claranet.pem
#
# * a mapping from regions to key paths if all EC2 instances in each region use the same key but they differ between regions
#
# key_path:
# eu-west-1: /home/admin/key/client_claranet_eu-west-1.pem
# us-west-2: /home/admin/key/client_claranet_us-west-2.pem
#
# * mappings from regions to accounts to key paths if all EC2 instances in each region use the same key but they differ between regions and accounts
#
# key_path:
# eu-west-1:
# '123456789': /home/admin/key/client_preprod_claranet_eu-west-1.pem
# '987654321': /home/admin/key/client_prod_claranet_eu-west-1.pem
# us-west-2:
# '987654321': /home/admin/key/client_prod_claranet_us-west-2.pem
#
# * mappings from regions to accounts to key names to key paths if all EC2 instances in each region use the same key but they differ between regions, accounts and instances
#
# key_path:
# eu-west-1:
# default: /home/admin/key/claranet-default-eu-west-1.pem
# '123456789':
# client_dev_claranet_eu-west-1: /home/admin/key/client_preprod_claranet_eu-west-1.pem
# '987654321':
# client_prod_app1_claranet_eu-west-1: /home/admin/key/client_prod_app1_claranet_eu-west-1.pem
# client_prod_app2_claranet_eu-west-1: /home/admin/key/client_prod_app2_claranet_eu-west-1.pem
# us-west-2:
# default:
# claranet-key-1: /home/admin/key/claranet-default-key-1-us-west-2.pem
# claranet-key-2: /home/admin/key/claranet-default-key-2-us-west-2.pem
# '987654321':
# client_prod_app1_claranet_us-west-2: /home/admin/key/client_prod_app1_claranet_us-west-2.pem
#
# A mix of the last three options can also be achieved:
#
# key_path:
# # Same key for all instances in the eu-west-1 region, no matter the account or key_name
# eu-west-1: /home/admin/key/client_dev_claranet_eu-west-1.pem
# us-west-2:
# # Same key for all instances in the eu-west-1 region and client_account_prod account, no matter key_name
# '987654321': /home/admin/key/client_prod_claranet_us-west-2.pem
# '123456789':
# # Key pair names mapping to local paths
# client_dev_claranet_eu-west-1: /home/admin/key/client_dev_claranet_us-west-2.pem
# client_preprod_claranet_eu-west-1: /home/admin/key/client_preprod_claranet_us-west-2.pem
#
# Notes:
# - account ids must be quoted to be parsed as string instead of numbers.
# Failing to do so with result in empty `key_path` as no match will be found.
# - no account id must be specified for applications in the same AWS account as Ghost.
# In that case, use `default`.
key_path: /home/admin/key/client_claranet.pem
# Optional parameters
# ===================
# Maximum number of deployment to keep per module on running EC2 instances
# Optional, default:
#max_deploy_history: 3
# Zabbix configuration repository
# Optional, default:
#zabbix_repo: git@bitbucket.org:morea/zabbix.git
# Use ~/.ssh/config file (allows to map private IPs to public IPs for example)
# Optional, default:
#use_ssh_config: false
# Select an RQ worker strategy: (defaults to "one_worker_per_app")
# - one_worker_per_app: each app will have its own dedicated RQ queue and worker to process jobs (all parallel)
# - one_worker_per_env: app in the same env will share a dedicated RQ queue and worker (per env parallel)
# - one_worker_for_all : a single RQ queue and worker will process all jobs (all serial)
# Optional, default:
#rq_worker_strategy: one_worker_per_app
# RQ Worker Job Timeout in seconds
# Optional, default:
#rq_worker_job_timeout: 3600
# Deploy to target instances in serial (fabric's default) or in parallel
# Optional, default:
#fabric_execution_strategy: serial
# Pagination for Eve
# Optional, default:
#eve_pagination_default: 23
# Pagination Limit for Eve
# Optional, default:
#eve_pagination_limit: 200
# LaunchConfiguration retention history per AutoScaling Group
# Optional, default:
#launch_configuration_retention: 5
# Images (AMI) retention history per app
# Optional, default:
#ami_retention: 5
# Also display AMIs from the following AWS accounts:
# Optional, default:
#display_amis_from_aws_accounts: []
display_amis_from_aws_accounts:
- '379101102735' # Debian Global
- '673060587306' # Debian China
# Blue/Green deployment options
# Optional, default:
#blue_green:
# enabled: false
blue_green:
enabled: false
preparebluegreen:
copy_ami: false
create_temporary_elb: true
module_deploy_required: false
swapbluegreen:
# Options to set on ELB HealthCheck when swapping
healthcheck_interval: 5
healthcheck_timeout: 2
registreation_timeout: 60
healthcheck_healthy_threshold: 2
# Slack notifications
# List of Slack configurations used to notify on Job triggered
# Optional, default:
#slack_configs: []
slack_configs:
-
webhooks_endpoint: https://hooks.slack.com/services/XX_KEY_XX # Morea #ghost-deployments webhook
channel: '#ghost-deployments'
bot_name: 'Claranet Cloud Deploy'
message_prefix: 'Ghost job triggered'
# -
# webhooks_endpoint: https://hooks.slack.com/services/XX_KEY_XX
# channel: '#ghost-deployments'
# bot_name: 'Ghost-config-2'
# message_prefix: 'Ghost'
# Specify how many Package we should keep per module in S3 Ghost bucket
# Unlimited by default if not specified
# It's possible to specify a value per app env
# Optional, default:
#deployment_package_retention: {}
deployment_package_retention:
prod: 42
dev: 3
# Option to enable or disable the `executescript` command
# This command might be disabled in some cases
#enable_executescript_command: True
# Specify if Ghost must exclude Git metadata (.git folder) when packaging the artefact
# Optional, default:
#deployment_package_exclude_git_metadata: false
# Option to specify the aws partition name
# This option is a list, allowing to deploy and use ghost on Global AWS (aws), AWS China (aws-cn) or AWS GovCloud (aws-us-gov)
aws_partitions:
- aws
# - aws-cn
# - aws-us-gov
# One Time Secret config used to send mail at user account creation
# one_time_secret:
# api_key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# username: fr-cloudpublic-ghost-devops@fr.clara.net
# ttl: 172800 # Time To Live in seconds
# passphrase: cloud-deploy