Project

General

Profile

Settingsyml » History » Version 2

Paul Kelly, 01/26/2011 10:11 AM

1 1 Paul Kelly
h1. Settings
2
3
The configuration for the smart-proxy is held in the *config/settings.yml* file.
4
5 2 Paul Kelly
The first non-comment line of this file must be three dashes.
6
7 1 Paul Kelly
<pre>
8
---
9
</pre>
10 2 Paul Kelly
11
The existance of all three ssl key entries enables the use of an SSL connections.
12
13 1 Paul Kelly
NOTE that both client certificates need to be signed by the same CA, which must be in the ca_file, in order for this to work
14
see http://theforeman.org/projects/smart-proxy/wiki/SSL for more information
15 2 Paul Kelly
16 1 Paul Kelly
<pre>
17
:ssl_certificate: ssl/certs/fqdn.pem
18
:ssl_ca_file: ssl/certs/ca.pem
19
:ssl_private_key: ssl/private_keys/fqdn.key
20
</pre>
21 2 Paul Kelly
22
This is the list of hosts from which the smart proxy will accept connections. If this list is empty then every verified SSL connection is allowed to access the API.
23
<pre>
24 1 Paul Kelly
:trusted_hosts:
25
- foreman.prod.domain
26
- foreman.dev.domain
27 2 Paul Kelly
</pre>
28 1 Paul Kelly
29 2 Paul Kelly
If this entry is present and not false then the smart-proxy will attempt to disconnect itself from the controlling terminal and daemonize itself.
30
<pre>
31 1 Paul Kelly
:daemon: true
32 2 Paul Kelly
</pre>
33 1 Paul Kelly
34 2 Paul Kelly
The port listened to by the proxy. If this is not present then the default Sinatra port of 4567 is used.
35
36
<pre>
37 1 Paul Kelly
:port: 8443
38 2 Paul Kelly
</pre>
39 1 Paul Kelly
40
# Enable TFTP management
41
:tftp: true
42
:tftproot: /tmp/tftpboot
43
44
45
# Enable DNS management
46
:dns: true
47
:dns_key: /home/proxy/keys/Kapi.+157+47848.private
48
49
# Enable DHCP management
50
:dhcp: true
51
# The vendor can be either isc or native_ms
52
:dhcp_vendor: isc
53
# Settings for Ubuntu ISC
54
#:dhcp_config: /etc/dhcp3/dhcpd.conf
55
#:dhcp_leases: /var/lib/dhcp3/dhcpd.leases
56
# Settings for Redhat ISC
57
:dhcp_config: etc/dhcpd.conf
58
:dhcp_leases: etc/dhcpd.leases
59
60
# enable PuppetCA management
61
#:puppetca: true
62
63
# enable Puppet management
64
#:puppet: true
65
66
# Where our proxy log files are stored
67
# filename or STDOUT
68
:log_file: /tmp/proxy.log
69
# valid options are
70
# Logger::WARN, Logger::DEBUG, Logger::Error, Logger::Fatal, Logger:INFO, LOGGER::UNKNOWN
71
#:log_level: Logger::DEBUG
72
</pre>