[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: action sequence ;)
From: |
Patryk Dawidziuk |
Subject: |
Re: action sequence ;) |
Date: |
Fri, 16 Jan 2004 12:09:32 +0100 |
User-agent: |
Mutt/1.3.28i |
-> Which specific line is it that the script fails on - I can't see
-> that straight away. Which name is it trying to look up?
In the line marked with ***
-> > control:
-> >
-> > # action
-> >
-> > actionsequence = ( resolve editfiles shellcommands copy tidy )
-> >
-> > # control, control [;
-> >
-> > domain = ( domain.cf )
-> > policyhost = ( my.fqdn.policy.host.cf )
-> > inputsdir = ( /etc/cfengine/inputs )
-> > sysadm = ( cfruler@mydomain )
-> > smtpservera = ( my.smtp.server )
-> > SplayTime = ( 5 )
-> > EmptyResolvConf = ( true )
-> >
-> > resolve:
-> >
-> > (ip 1)
-> > (ip 2)
-> > (ip 3)
-> >
-> >
-> > editfiles:
-> >
-> > { /etc/default/ntp-servers
-> >
-> > BeginGroupIfNoSuchLine 'NTPSERVERS="ntp.task.gda.pl"'
-> > EmptyEntireFilePlease
-> > InsertLine 'NTPSERVERS="ntp.task.gda.pl"'
-> > EndGroup
-> > DefineClasses "DateSync"
-> > }
-> >
-> > shellcommands:
-> >
-> > DateSync|Hr00::
-> > "/etc/init.d/ntpdate start" useshell="false"
-> >
-> > copy:
-> >
-> > # local copy of passwd and shadow
-> >
-> > /etc/passwd dest=/var/backups/passwd mode=600
-> > /etc/shadow dest=/var/backups/shadow mode=600
-> >
-> > # and remote
-> >
-> > /etc/cfengine/cfagent.conf
-> > dest=/etc/cfengine/cfagent.conf
-> > mode=644
-> > server=$(policyhost)
-> > type=checksum
-> > backup=false
-> > encrypt=true
*** tidy: *** 56th line
-> > ( just like in docs)
Seems strange, because copy: passed, and script failed on tidy: action
which seems strange, but I do not consider it important. For me it could safely
die on line with server=$(policyhost) as resolv is dead.
--
[ Patryk Dawidziuk | glut lanet.wroc.net .......... ]
[ http://no.suid.pl .......... ]
[ .......... .......... ]
pgpGtd4HGvPRj.pgp
Description: PGP signature