-
Notifications
You must be signed in to change notification settings - Fork 8
/
chef-backend_dev-lxc.yml
81 lines (74 loc) · 2.31 KB
/
chef-backend_dev-lxc.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
# enable_build_snapshots automatically makes container snapshots at key times during the build process
# default value is `true`
#enable_build_snapshots: true
# base_container must be the name of an existing container
base_container: b-ubuntu-1404
# memory_per_server sets the maximum amount of user memory (including file cache) for each server.
# dev-lxc will set the `memory.limit_in_bytes` cgroup for each server to apply this limit.
# If no units are specified, the value is interpreted as bytes.
# You can use suffixes to represent larger units - k or K for kilobytes, m or M for megabytes, and g or G for gigabytes.
# The default behavior is that no limit is set.
#memory_per_server: 4G
# list any host directories you want mounted into the servers
#mounts:
# - /root/clusters root/clusters
# list any SSH public keys you want added to /home/dev-lxc/.ssh/authorized_keys
#ssh-keys:
# - /root/clusters/id_rsa.pub
# DHCP reserved (static) IPs must be selected from the IP range 10.0.3.150 - 254
chef-backend:
api_fqdn: chef-ha.lxc
users: # a user's password will be the same as its username
- mary-admin
- joe-user
orgs:
demo:
admins:
- mary-admin
non-admins:
- joe-user
servers:
chef-backend1.lxc:
ipaddress: 10.0.3.208
role: backend
leader: true
products:
chef-backend:
channel: stable
version: latest
chef-backend2.lxc:
ipaddress: 10.0.3.209
role: backend
products:
chef-backend:
channel: stable
version: latest
chef-backend3.lxc:
ipaddress: 10.0.3.210
role: backend
products:
chef-backend:
channel: stable
version: latest
chef-frontend1.lxc:
ipaddress: 10.0.3.211
role: frontend
bootstrap: true
products:
chef-server:
channel: stable
version: latest
manage:
channel: stable
version: latest
nodes:
chef_server_url: https://chef-ha.lxc/organizations/demo
validation_client_name: demo-validator
# comment out or remove the validation_key path to use chef-server keys generated by dev-lxc
validation_key: # /path/for/ORG-validator.pem
servers:
node-1-ha.lxc:
products:
chef:
channel: stable
version: latest