template pro_lcg2_service_gridice_webserver; #not everything is done through this config: only the creation of the users and the server config file. initial run required. follow the infn guide for #font install #patch httpd.conf + restart #ln -s #postgresql config (you will probably have to remove the /var/lib/pgsql/data directory) #first start-conf (cfg-file should be there) #gridice db config #no cron jobs (cron component) #start initial discovery #wait for first results # ---------------------------------------------------------------------------- # cron # ---------------------------------------------------------------------------- include pro_software_component_cron; "/software/components/cron/entries" = push(nlist( "name","checkGris", "user","root", "frequency", "*/5 * * * *", "command", "/usr/bin/perl /usr/lib/nagios/dscv/checkGris.pl")); "/software/components/cron/entries" = push(nlist( "name","jobFix", "user","root", "frequency", "* */4 * * *", "command", "/usr/bin/perl /usr/lib/nagios/dscv/jobFix.pl")); "/software/components/cron/entries" = push(nlist( "name","vacuum", "user","root", "frequency", "30 5,9,13,17,21 * * *", "command", "/opt/gridice/utils/gridicedb-vacuum.pl")); "/software/components/cron/entries" = push(nlist( "name","vacuum-analyze", "user","root", "frequency", "30 1 * * *", "command", "/opt/gridice/utils/gridicedb-vacuum.pl --analyze")); "/software/components/cron/entries" = push(nlist( "name","start-dscv", "user","root", "frequency", "30 1 * * *", "command", "/usr/bin/perl /usr/lib/nagios/dscv/start-dscv.pl")); # ---------------------------------------------------------------------------- # chkconfig # ---------------------------------------------------------------------------- include pro_software_component_chkconfig; "/software/components/chkconfig/service/nagios/on" = ""; "/software/components/chkconfig/service/httpd/on" = ""; "/software/components/chkconfig/service/postgresql/on" = ""; ## add users include pro_software_component_accounts; "/software/components/accounts/groups/postgres" = nlist("gid", 26); "/software/components/accounts/users/postgres" = nlist( "uid", 26, "groups", list("postgres"), "comment","Postgres", "shell", "/bin/bash", "homeDir", "/var/lib/pgsql" ); "/software/components/accounts/groups/nagios" = nlist("gid", 101); "/software/components/accounts/users/nagios" = nlist( "uid", 100, "groups", list("nagios"), "comment","Nagios", "shell", "/bin/false", "homeDir", "/usr/lib/nagios" ); ## gridice server cfg include pro_software_component_filecopy; define variable CONTENTS = <