Initial setup: cdist-contrib + dot-cdist
This commit is contained in:
commit
7ca9adf523
4 changed files with 38 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Ignore any directory.
|
||||||
|
*/
|
5
.mrconfig
Normal file
5
.mrconfig
Normal 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
27
README.md
Normal 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
4
cdist.cfg
Normal 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
|
Loading…
Reference in a new issue