Project

General

Profile

How to configure servers with cdist » History » Version 2

Timothée Floure, 02/16/2021 04:13 PM

1 1 Nico Schottelius
h1. How to configure servers with cdist
2
3
h2. Introduction
4
5 2 Timothée Floure
We are using "cdist":https://www.nico.schottelius.org/software/cdist/ to manage our system configurations. This software has originally been developped by ungleich-folk, but now has a much broader community.
6
7
h2. The ungleich cdist environment
8
9
Our environment is composed of 4 repositories:
10
11
* ungleich-intern/cdist-workdir: meta-repository used as convenience helper to run access types across our 3 type repositories.
12
* ungleich-intern/dot-cdist: internal (= private) and historic cdist repository. Contains our manifests.
13
* ungleich-public/cdist-ungleich: public (infrastructure transparency, sharing with the community) ungleich types that are too specific to be upstream to core cdist or cdist-contrib.
14
* ungleich-public/cdist-contrib: community-managed repository for types that do not fit into core-cdist.
15 1 Nico Schottelius
16
h2. Applying changes to servers
17
18
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:
19
20
<pre>
21
# Login to configuration server
22
ssh -A ungleich@control.ungleich.ch
23
24
# Ensure cdist configuration is up-to-date
25
cd ~/.cdist
26
git pull
27
28
# Configure
29
cdist config -vv <hostname>
30
31
32
</pre>