cdist/conf/manifest/init.sample
Nico Schottelius 37d4ecd907 init.sample fix
Franky Van Liedekerke:

> - the example init.sample file mentioned "deinstalled" for package
> state, but I believe it should be "removed"

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-06-23 13:38:36 +02:00

69 lines
1.8 KiB
Text
Executable file

#
# 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
case "$__target_host" in
# Everybody has this
localhost)
require="__file/etc/cdist-configured" __link /tmp/cdist-testfile \
--source /etc/cdist-configured --type symbolic
require="__directory/tmp/cdist-test-dir" __file /tmp/cdist-test-dir/test-file \
--mode 0750 --owner nobody --group root
__directory /tmp/cdist-test-dir --mode 4777
require="__file/etc/cdist-configured __link/tmp/cdist-testfile" \
__file /tmp/cdist-another-testfile
;;
#
# Examples using different types
#
#
# Use an alias in /etc/hosts for localhost to use these hosts:
#
# 127.0.0.1 localhost.localdomain localhost cdist-archlinux
#
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 removed
;;
cdist-redhat)
__issue
__motd
;;
# Real machines may be used with their hostname or fqdn,
# depending on how you call cdist-deploy-to
# machine)
# ...
# ;;
# machine.example.org)
# ...
# ;;
esac