How to configure servers with cdist » History » Version 1
Nico Schottelius, 10/24/2018 04:07 PM
1 | 1 | Nico Schottelius | h1. How to configure servers with cdist |
---|---|---|---|
2 | |||
3 | h2. Introduction |
||
4 | |||
5 | We are using "cdist":https://www.nico.schottelius.org/software/cdist/ to manage our system configurations. |
||
6 | |||
7 | h2. Applying changes to servers |
||
8 | |||
9 | When a server needs to be (re-)configured, login to control.ungleich.ch with ssh agent forwarding enabled. The username is the same as the customer you want to apply configurations for. If you want for instance to configure the ungleich infrastructure, proceed as follows: |
||
10 | |||
11 | <pre> |
||
12 | # Login to configuration server |
||
13 | ssh -A ungleich@control.ungleich.ch |
||
14 | |||
15 | # Ensure cdist configuration is up-to-date |
||
16 | cd ~/.cdist |
||
17 | git pull |
||
18 | |||
19 | # Configure |
||
20 | cdist config -vv <hostname> |
||
21 | |||
22 | |||
23 | </pre> |