|
From: | Bas van der Vlies |
Subject: | Re: [Cfengine] how to install a package uninstalled with cfengine??? |
Date: | Tue, 20 Jul 2004 08:06:27 +0200 |
User-agent: | Mozilla Thunderbird 0.7.2 (Windows/20040707) |
freak wrote:
Hello!! I would to test if a package is installed on different hosts and install this package when is not installed. Anybody knows if it's possible to do this type of command with cfengine??? All my network run on Debian Sarge!!!
I use a lot of this kind of cfengine scripts: --- sudo.cf ----- # Install SUDO and sudo config file (sudoers) groups: SUDO_INSTALLED = ( FileExists(/var/lib/dpkg/info/sudo.list) ) control: actionsequence = ( copy shellcommands ) copy: !SUDO_INSTALLED:: $(SV_OVERLAY_DIR)/global/etc/sudoers dest=/etc/sudoers type=checksum backup=false server=$(SERVER) mode=0440 shellcommands: !SUDO_INSTALLED:: "$(SCRIPT_DIR)/install_pkg sudo"
[Prev in Thread] | Current Thread | [Next in Thread] |