forked from ubccr/grendel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrendel.toml.sample
150 lines (120 loc) · 4.24 KB
/
grendel.toml.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
#------------------------------------------------------------------------------
# Sample Grendel Config
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# General
#------------------------------------------------------------------------------
#
# Path database file. Defaults to ":memory:" which uses in-memory store. Change
# this to a filepath for persisent storage.
#
dbpath = ":memory:"
#
# By default, all loggers are on. You can turn off logging for specific
# services here.
#
loggers = {cli="on", tftp="off", dhcp="on", dns="off", provision="on", api="on", pxe="off"}
#------------------------------------------------------------------------------
# HTTP Provision Server
#------------------------------------------------------------------------------
[provision]
# For provisioning with http
listen = "0.0.0.0:80"
scheme = "http"
# For provisioning with https
#
#listen = "0.0.0.0:443"
#
#scheme = "https"
#
# hostname for grendel, should also be the hostname for the SSL certificate
#hostname = "my.host.name"
#
# Path to ssl cert (.crt file)
#cert = "/path/to/cert/file/hostname.crt"
#
# Path to ssl key (.key file)
#key = "/path/to/cert/file/hostname.key"
#
# TTL in seconds for provision tokens. Defaults to 1 hour
token_ttl = 3600
# Can generate secret with `openssl rand -hex 16`
#secret = "_provisioning_secret_here_"
# Hashed root password used in kickstart template
root_password = ""
# Default OS image name
default_image = ""
# Path to repo directory
repo_dir = ""
#------------------------------------------------------------------------------
# DHCP Server
#------------------------------------------------------------------------------
[dhcp]
listen = "0.0.0.0:67"
# Default lease time
lease_time = "24h"
# List of DNS servers
dns_servers = []
# List of DNS search domains
domain_search = []
# Default MTU
mtu = 1500
# Dynamic router configuration. Grendel will generate the router option 3 for
# DHCP responses based on the hosts IP address, netmask, and router_octet4. For
# example, if all subnets in your data center have routers 10.x.x.254 you can
# set router_octet4 = 254. If a host ip address is 10.104.13.10, Grendel will
# set the router option in the dhcp response to 10.104.13.254. Note setting
# this option will set the netmask to 24. Off by default.
router_octet4 = 0
# Hard code a static router. Not set by default.
#router = ""
# Default netmask example: 8, 16, 24, etc.
netmask = 24
# Only run DHCP Proxy server
proxy_only = false
#------------------------------------------------------------------------------
# DNS Server
#------------------------------------------------------------------------------
[dns]
listen = "0.0.0.0:53"
# Default TTL for dns responses
ttl = 86400
#------------------------------------------------------------------------------
# TFTP Server
#------------------------------------------------------------------------------
[tftp]
listen = "0.0.0.0:69"
#------------------------------------------------------------------------------
# PXE Server
#------------------------------------------------------------------------------
[pxe]
listen = "0.0.0.0:4011"
#------------------------------------------------------------------------------
# API Server
#------------------------------------------------------------------------------
[api]
# Can generate secret with `openssl rand -hex 16`
#secret = "_api_secret_here_"
# Path to unix socket
socket_path = "grendel-api.socket"
#------------------------------------------------------------------------------
# API Client Config
#------------------------------------------------------------------------------
[client]
# Grendel API endpoint
api_endpoint = "grendel-api.socket"
# Verify ssl certs? false (yes) true (no)
insecure = false
#------------------------------------------------------------------------------
# Global BMC Config
#------------------------------------------------------------------------------
[bmc]
user = ""
password = ""
#------------------------------------------------------------------------------
# Automatic Host Discovery Config
#------------------------------------------------------------------------------
[discovery]
user = ""
password = ""
domain = ""