Initial setup: cdist-contrib + dot-cdist

This commit is contained in:
Timothée Floure 2020-10-05 13:08:42 +02:00
commit 7ca9adf523
4 changed files with 38 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# Ignore any directory.
*/

5
.mrconfig Normal file
View File

@ -0,0 +1,5 @@
[dot-cdist]
checkout = git clone 'gitea@code.recycled.cloud:e-Durable/dot-cdist.git' 'dot-cdist'
[cdist-contrib]
checkout = git clone 'https://code.ungleich.ch/ungleich-public/cdist-contrib.git' 'cdist-contrib'

27
README.md Normal file
View File

@ -0,0 +1,27 @@
# e-Durable cdist workdir
This repository provides an easy way to pull and sync the various components
making up our cdist environment. It makes use of
[myrepos](https://myrepos.branchable.com/), which is packaged in most
distributions.
## Usage
```
# First of all, clone this repository.
git clone https://code.recycled.cloud/e-Durable/cdist-workdir.git
# Make sure myrepos is available.
mr help
# Fetch components.
cd cdist-workir
mr update
# Configure cdist to look for types in our components.
# Note: you can also use the -g flag or the CDIST_CONFIG_FILE environment variable.
cp cdist.cfg ~/.cdist.cfg
# Use cdist as usual, from the cdist-workir repository!
cdist config -v [...]
```

4
cdist.cfg Normal file
View File

@ -0,0 +1,4 @@
[GLOBAL]
# Notice that types defined in last dir win and can override native types.
# Consider using a prefix for your own types to avoid collisions.
conf_dir = cdist-contrib:dot-cdist