-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcfch.ejs
More file actions
37 lines (34 loc) · 911 Bytes
/
cfch.ejs
File metadata and controls
37 lines (34 loc) · 911 Bytes
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
#cloud-config
<%
var host = host || 'host';
var domain = domain || '';
var ddomain = domain ? '.' + domain : '';
var dataserver = dataserver ? dataserver : 'data' + ddomain;
var timezone = timezone || 'Europe/Paris';
var bootstrap = bootstrap || false;
if (bootstrap)
var consul = "-bootstrap-expect " + bootstrap;
else
{
var consul = consul ? consul : domain.slice(1);
if (consul)
{
consul = "-retry-join " + consul;
}
}
-%>
hostname: "<%= host %><%= ddomain %>"
ssh_authorized_keys:
<% include partials/ssh_keys/main %>
coreos:
update:
reboot-strategy: best-effort
<% include partials/etcd %>
units:
<% include partials/units/etcd2.ejs %>
<% include partials/units/fleet.ejs %>
<% include partials/units/data_mount.ejs %>
<% include partials/units/timezone.ejs %>
<% include partials/units/consul.ejs %>
<% include partials/units/registrator.ejs %>
<% include partials/units/haproxy.ejs %>