fix fixing the merge conflict
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
a50e380174
commit
8b614b274c
1 changed files with 52 additions and 0 deletions
52
conf/manifest/init
Executable file
52
conf/manifest/init
Executable file
|
@ -0,0 +1,52 @@
|
|||
#
|
||||
# This is a sample manifest, but used in real world
|
||||
#
|
||||
|
||||
# This is debug and should not be in a production environment
|
||||
# echo "We could access other manifests in $__manifest"
|
||||
|
||||
# Every machine becomes a marker, so sysadmins know that automatic
|
||||
# configurations are happening
|
||||
__file /etc/cdist-configured --type file
|
||||
|
||||
case "$__target_host" in
|
||||
# Everybody has this
|
||||
localhost)
|
||||
# Usual example
|
||||
__file test --type symlink --source /etc/cdist-configured --destination /tmp/cdist-testfile
|
||||
;;
|
||||
|
||||
#
|
||||
# Examples using different types
|
||||
#
|
||||
|
||||
# Alias in /etc/hosts for localhost
|
||||
cdist-archlinux)
|
||||
# This is the specific package type for pacman
|
||||
__package_pacman zsh --state installed
|
||||
|
||||
# The __package type autoselect the right type based on the os
|
||||
__package vim --state installed
|
||||
|
||||
# If the type is a singleton, it does not take an object id
|
||||
__issue
|
||||
;;
|
||||
# This is how it would look like on gentoo
|
||||
cdist-gentoo)
|
||||
# Same stuff for gentoo
|
||||
__package tree --state installed
|
||||
;;
|
||||
cdist-debian)
|
||||
__package_apt atop --state installed
|
||||
__package apache2 --state deinstalled
|
||||
;;
|
||||
|
||||
# Real machines may be used with their hostname or fqdn,
|
||||
# depending on how you call cdist-deploy-to
|
||||
# machine)
|
||||
# ...
|
||||
# ;;
|
||||
# machine.example.org)
|
||||
# ...
|
||||
# ;;
|
||||
esac
|
Loading…
Reference in a new issue