Project

General

Profile

The ungleich cdist trigger server guide » History » Version 2

Dominique Roux, 02/01/2019 04:34 PM

1 1 Dominique Roux
h1. The ungleich cdist trigger server guide
2
3
{{>toc}}
4
5
h2. What is cdist trigger server
6
7
The cdist trigger server can be used for autonomous configuration of hosts. Unlike the "normal" procedure of cdist, where a human being or a control server itself starts cdist for the configuration, the cdist trigger server waits until it gets triggered (therefore the name) by a host which wants to be configured. 
8
9
The trigger server takes the IP from the requester and first tries to resolve the IP to a FQDN (via the reverse zone). The FQDN (or the IP if reverse lookup didn't work out) is then used for the cdist configuration (same as @cdist config HOSTNAME@)
10
11
h2. Where do we use it
12
13
We at ungleich, we use the cdist trigger server currently for our server startup chain (See: [[The ungleich server OS setup]]
14
Where the netbooted server will trigger the trigger server and then gets fully configured.
15
16
h2. How to get
17
18
Cdist trigger server is currently in beta phase. This means you have to clone the repository ("cdist":github.com:ungleich/cdist.git) and checkout the beta branch
19
<pre>
20
git clone git@github.com:ungleich/cdist.git
21
cd cdist
22
git checkout beta
23
</pre>
24
25
h2. How to configure
26
27
The simplest usage is the following
28
29
<pre>
30
cdist trigger -b -H 3000 --ipv6
31
</pre>
32
33
This will start the server, listen on port 3000 and also enable IPv6
34
35 2 Dominique Roux
If you have the configuration files not in the default location (@~/.cdist@), use the @-c@ parameter
36
37 1 Dominique Roux
h2. Nice additional configurations
38 2 Dominique Roux
39
Since the trigger server needs access to the host which is going to be configured, the trigger server ssh key needs to be deployed in before.
40
Simplest solution is to create a small webserver, which provides the public key from the trigger server.
41
Therefore the host have to get and install the ssh key before it triggers the cdist trigger server.
42 1 Dominique Roux
43
h2. Resources
44
45
# "cdist trigger man":https://www.nico.schottelius.org/software/cdist/man/beta/cdist-trigger.html
46
# "cdist preos man":https://www.nico.schottelius.org/software/cdist/man/beta/cdist-preos.html