2011-02-02 14:02:29 +01:00
|
|
|
#
|
|
|
|
# This is a sample manifest, but used in real world
|
|
|
|
#
|
|
|
|
|
2011-02-24 15:14:00 +01:00
|
|
|
# This is debug and should not be in a production environment
|
2011-02-24 21:36:11 +01:00
|
|
|
echo "We could access other manifests in $__manifest"
|
2011-02-24 15:14:00 +01:00
|
|
|
|
2011-02-26 20:43:30 +01:00
|
|
|
__file /etc/cdist-configured --type file
|
2011-02-25 02:13:11 +01:00
|
|
|
|
2011-02-24 15:14:00 +01:00
|
|
|
case "$__target_host" in
|
2011-03-03 08:55:02 +01:00
|
|
|
# Everybody has this
|
2011-02-22 17:25:31 +01:00
|
|
|
localhost)
|
2011-02-23 09:10:17 +01:00
|
|
|
__file test --type file --destination /tmp/cdist-testfile
|
2011-02-19 00:01:39 +01:00
|
|
|
;;
|
2011-02-22 16:11:07 +01:00
|
|
|
|
2011-03-02 23:34:34 +01:00
|
|
|
# Alias in /etc/hosts for localhost
|
|
|
|
cdist-archlinux)
|
|
|
|
__package_pacman django --state deinstalled
|
|
|
|
__package_pacman wireshark-cli --state installed
|
|
|
|
__package_pacman zsh --state installed
|
|
|
|
;;
|
2011-03-03 08:44:03 +01:00
|
|
|
cdist-gentoo)
|
2011-03-03 08:44:58 +01:00
|
|
|
__package tree --state installed
|
2011-03-03 08:44:03 +01:00
|
|
|
;;
|
2011-03-02 23:34:34 +01:00
|
|
|
|
2011-03-03 08:44:03 +01:00
|
|
|
# Real machines
|
2011-03-02 18:40:13 +01:00
|
|
|
ikq*)
|
|
|
|
__package_apt zsh --state installed
|
2011-03-03 09:12:55 +01:00
|
|
|
__package_apt apache2 --state deinstalled
|
2011-03-02 18:40:13 +01:00
|
|
|
;;
|
2011-03-04 02:06:13 +01:00
|
|
|
kr)
|
|
|
|
__issue iddoesnotmatterhere
|
|
|
|
;;
|
2010-11-01 00:09:30 +01:00
|
|
|
esac
|