commit 7ca9adf523f1f7e078c427a7fb6e0340fd09805a Author: Timothée Floure Date: Mon Oct 5 13:08:42 2020 +0200 Initial setup: cdist-contrib + dot-cdist diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5295c73 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Ignore any directory. +*/ diff --git a/.mrconfig b/.mrconfig new file mode 100644 index 0000000..cbe5fef --- /dev/null +++ b/.mrconfig @@ -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' diff --git a/README.md b/README.md new file mode 100644 index 0000000..39c04d6 --- /dev/null +++ b/README.md @@ -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 [...] +``` diff --git a/cdist.cfg b/cdist.cfg new file mode 100644 index 0000000..a5a0972 --- /dev/null +++ b/cdist.cfg @@ -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