-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinventory.yml.sample
142 lines (128 loc) · 5.14 KB
/
inventory.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
---
all:
vars:
# Path to YOUR ssh key. Used by ansible to connect to servers
ansible_ssh_private_key_file: ~/.ssh/id_rsa
region_name: dev # The region name. Should be lower case, without spaces, and only '-' and '_' characters
availability_zone_name: "{{ region_name }}-a"
##
# Backups
# backup_remote_protocol: "ssh" # Default is SSH. Optionally 'nfs', or 'local' if no backup server exists.
backups_key: "changme!" # Example: `openssl rand -base64 32`
# Set to false for LetsEncrypt
use_zerossl: true
##
# Bug Reporting
#
# 1) Uncomment and leave blank to disable bug reporting completely.
# 2) Leave commented out to report bugs to ComputeStacks.
# 3) Uncomment and set to your own Sentry DSN.
# sentry_dsn: ""
##
# Cloud Platform Specifics
# Define what cloud platform you're running on.
#
# Please leave commented out unless you're running on digital ocean.
#
# cloud_platform: "digitalocean"
# platform_do_token: "" # DigitalOcean Personal Access token to enable Floating IP Migration
##
# Container Network
# We recommend not going smaller than a `/21`.
container_network: 10.100.0.0/21
# Optionally use a docker registry mirror - MUST be https.
# docker_registry_mirror: https://my-registry-cache
##
# CS Controller Settings
cs_app_url: a.dev.cmptstks.net
cs_app_zone: cmptstks.net # The zone file for the app url
cs_currency: "USD" # Default currency. Can add more later in web admin.
cs_portal_domain: portal.dev.cmptstks.net
cs_registry_domain: cr.dev.cmptstks.net
cs_metrics_domain: metrics.dev.cmptstks.net
##
# Create Admin Account
cs_admin_email: "root@localhost"
cs_admin_password: changeme
##
# Management SSL Certificates
# Controller, Registry, and Metrics will all receive ZeroSSL certificates during installation. By default, this will be done through HTTP validation.
#
# acme_challenge_method: 'http'
#
# To use DNS validation, see `ACME_VALIDATIONS.md`.
##
# Additional Management Ips
# Add any additional IP Addresses that you want to have full access
# to these servers. You can enter either single address, or ranges like: 192.168.10.0/24.
#
# Example:
# extra_allowed_ipv4_addresses:
# - "192.168.10.32"
# - "192.168.10.33"
# extra_allowed_ipv6_addresses:
# - "2600:3c01::f03c:92ff:feaa:fc7e"
children:
backup_server:
hosts:
192.168.173.11:
node_ip: 192.168.173.11 # backup ip used by nodes
controller_ip: 192.168.173.11 # backup ip used by controller
metrics_ip_address: 192.168.173.11 # The ip used by prom to connect for stats.
ssh_port: 22
controller:
hosts:
192.168.173.9:
postgres_cs_password: "" # pwgen -s 32 1
node_ip: 192.168.173.9 # The ip used to connect to nodes. (used by docker_iptables)
metrics_ip_address: 192.168.173.9 # The ip used by prom to connect for stats.
ssh_port: 22
##
# Example with pre-existing powerdns cluster
# pdns_skip_provisioning: true
# pdns_endpoint: "http://ns1.example.com:8081/api/v1/servers"
# pdns_api_key: "" # PowerDNS API Key
# pdns_web_key: "" # WebServer Password
# pdns_nslist:
# - "ns1.example.com"
# - "ns2.example.com"
# pdns_zone_type: Native
# pdns_masters: [] # Leave empty for Native replication
metrics:
hosts:
192.168.173.9:
loki_password: "" # pwgen -s 32 1
prometheus_password: "" # pwgen -s 32 1
controller_endpoint: 127.0.0.1 # The ip/hostname used by the controller to connect
node_endpoint: 192.168.173.9 # The ip/hostname used by nodes to connect
ssh_port: 22
nodes:
hosts: # Only 1 allowed
192.168.173.10:
backup_ip: 192.168.173.10 # node ip used by backup server
consul_bootstrap: true # set false on all other nodes.
consul_listen_ip: 192.168.173.10 # used by both controller and agent.
metrics_ip_address: 192.168.173.10 # The ip used by prom to connect for stats.
ssh_port: 22
registry:
hosts:
192.168.173.9:
controller_ip: 127.0.0.1 # IP Addresses used by controller to connect to registry
ssh_port: 22
primary_nameserver:
# Even if you're not using powerdns, you MUST still include the empty `hosts:` section
hosts:
192.168.173.20: # Comment out this if you have an existing cluster
pdns_name: "ns1.example.com"
ssh_port: 22
# The ip used for internal postgres replication.
# This may often times be separate than the primary public ip
postgres_ip: 192.168.173.20
follower_nameservers:
# Even if you're not using powerdns, you MUST still include the empty `hosts:` section
# We only support 1 follower
hosts:
192.168.173.21: # Comment out this if you have an existing cluster
pdns_name: "ns2.example.com"
ssh_port: 22
postgres_ip: 192.168.173.21