From 2ccbb4b130afac3d1707433b3988259ea109db7f Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 15 Apr 2008 17:34:50 -0400 Subject: Replaced the existing cobbler pre/post install triggers system with a much more flexible model that (for each system) passes in the following. First arg: the word "system" or "profile", Second arg: the name of the said system or profile, Third: the MAC if available, Fourth: the IP. This is all logged by a default "status" trigger to /var/log/cobbler/install.log, for being read by the soon-to-be-revamped cobbler check. The check system logs all of this in order, followed by the word "start" or "stop", followed by the number of seconds since Epoch. --- config/cobblerd_rotate | 7 +++++++ config/settings | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/cobblerd_rotate b/config/cobblerd_rotate index 0e4bcbf..c7a8b19 100644 --- a/config/cobblerd_rotate +++ b/config/cobblerd_rotate @@ -21,3 +21,10 @@ fi endscript } + +/var/log/cobbler/install.log { + missingok + notifempty + rotate 4 + weekly +} diff --git a/config/settings b/config/settings index 8fc0fdf..33eb4b1 100644 --- a/config/settings +++ b/config/settings @@ -35,7 +35,7 @@ manage_dhcp: 0 manage_dhcp_mode: isc next_server: '127.0.0.1' pxe_just_once: 0 -run_post_install_trigger: 0 +run_install_trigger: 1 server: '127.0.0.1' snippetsdir: /var/lib/cobbler/snippets syslog_port: 25150 -- cgit