bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-cfengine] Re: RESUBMISSION: constants have to be defined for every


From: Mark Burgess
Subject: [Bug-cfengine] Re: RESUBMISSION: constants have to be defined for every platform even
Date: Fri, 15 Sep 2000 17:05:31 +0200 (MET DST)

This is not a bug, merely a side effect. The behaviour in 1.6.0
might change, but that is not decided yet...

Mark

> 
> Hi !
> 
> [ Cc and Reply-To set to address@hidden ]
> 
> I submitted this bug report over a month ago and didn't get an answer.  :(
> 
> It appeared in the news group gnu.cfengine.bug and I got no mail bounce so
> I think you received my mail.
> 
> It would be nice to hear something like "This is not a bug." or "This will
> be fixed." or something else so I know that someone is working on it. Or,
> at least, took a look at the problem and decided that it's not a bug.
> 
> mfg andy
> -- 
>      I am from Austria - but I did not vote for Joerg Haider and the FPOE.
> Administrative contact: address@hidden
> Vienna University of Technology - Database & Artificial Intelligence Group
> A-1040 Wien, Favoritenstr. 9-11  -  Tel.: ++43-1-58801/18429
> 
> ---------- Forwarded message ----------
> From: Andreas Kreuzinger <address@hidden>
> To: address@hidden
> Cc: address@hidden
> Date: Tue, 8 Aug 2000 14:21:53 +0200 (CEST)
> Subject: constants have to be defined for every platform even if they are
>     not used on every platform
> Reply-To: address@hidden
> X-Sender: address@hidden
> 
> Hi !
> 
> [ Cc and Reply-To set to address@hidden ]
> 
> If I define constants depending on the operating system and/or release I
> have to define them for all platforms. Otherwise I get an error that they
> are not defined, even if I don't use them on this platform.
> 
> Here is an example config file:
> [...snip...]
> control:
>   freebsd::
>     lprng_sh = ( /usr/local/etc/rc.d/lprng.sh )
> [...snip...]
> editfiles:
>   freebsd.!PrintServer::
>     { $(lprng_sh)
>       HashCommentLinesContaining "/usr/local/sbin/lpd"
>       DefineClasses "stop_lpd" 
>     }
> [...snip...]
> 
> lprng_sh is not defined for solaris.
> 
> When I run cfengine (debug level 1 (=parsing)) on a solaris host I get
> this output (only the interesting bits):
> [...snip...]
> BEGIN NEW ACTION Control Defintions:
> Class:: freebsd::
>    (No actions pending in Control Defintions:)
> HandleClass(freebsd)
> Simple identifier or class = (freebsd)
> HandleClass(end)
> HandleId(lprng_sh)
> RecordMacroId(lprng_sh)
> LEFTBRACK
> HandleItem(/usr/local/etc/rc.d/lprng.sh)
> simple item = (/usr/local/etc/rc.d/lprng.sh)
> Not installing , no match
> RIGHTBRACK
>    (No actions pending in Control Defintions:)
> [...snip...]
> BEGIN NEW ACTION Edit Simple Text File:
> Class:: freebsd.!PrintServer::
>    (No actions pending in Edit Simple Text File:)
> HandleClass(freebsd.!PrintServer)
> Compound class = (freebsd.!PrintServer) with 2 members
> HandleClass(end)
>    (No actions pending in Edit Simple Text File:)
> InitializeAction()
> HandleVarpath($(lprng_sh))
> HandleItem(HashCommentLinesContaining)
> simple item = (HashCommentLinesContaining)
> Handling Edit of $(lprng_sh), action [HashCommentLinesContaining] with data 
> </us
> r/local/sbin/lpd>
> CompareMacro(lprng_sh,c_dir=/home/sysop/config)=c_dir
> CompareMacro(lprng_sh,conf_dir_client_all=/home/sysop/config/client/all)=conf_di
> r_client_all
> CompareMacro(lprng_sh,skey_access=/etc/skey.access)=skey_access
> CompareMacro(lprng_sh,Verbose=off)=Verbose
> CompareMacro(lprng_sh,c_subdir=solaris)=c_subdir
> CompareMacro(lprng_sh,cfengine_dir=/home/sysop/config/cfengine)=cfengine_dir
> CompareMacro(lprng_sh,conf_dir_server=/home/sysop/config/server/solaris)=conf_di
> r_server
> CompareMacro(lprng_sh,c_dir_server=/home/sysop/config/server)=c_dir_server
> CompareMacro(lprng_sh,Warnings=on)=Warnings
> CompareMacro(lprng_sh,rc_script_dir=/etc/init.d)=rc_script_dir
> CompareMacro(lprng_sh,sendmail_cf=/etc/mail/sendmail.cf)=sendmail_cf
> CompareMacro(lprng_sh,inetd_conf=/etc/inet/inetd.conf)=inetd_conf
> CompareMacro(lprng_sh,crontab_dir=/var/spool/cron/crontabs)=crontab_dir
> CompareMacro(lprng_sh,Inform=off)=Inform
> CompareMacro(lprng_sh,root_crontab=/var/spool/cron/crontabs/root)=root_crontab
> CompareMacro(lprng_sh,script_dir=/home/sysop/config/scripts)=script_dir
> CompareMacro(lprng_sh,periodic_dir=DUMMY_PFAD_fuer_cfengine-periodic_dir_fuer_so
> laris)=periodic_dir
> CompareMacro(lprng_sh,sshd_config=/etc/dbai/sshd_config)=sshd_config
> CompareMacro(lprng_sh,conf_dir_server_all=/home/sysop/config/server/all)=conf_di
> r_server_all
> CompareMacro(lprng_sh,conf_dir_client=/home/sysop/config/client/solaris)=conf_di
> r_client
> CompareMacro(lprng_sh,c_dir_client=/home/sysop/config/client)=c_dir_client
> Bad variable $(lprng_sh)
> ReleaseCurrentLock()
> [...snip...]
> 
> It doesn't make a difference but this solaris host is not defined as
> PrintServer.
> freebsd.!PrintServer should not match on this host. So why do I have to
> define this constant?
> 
> Tested on Solaris 2.6 and FreeBSD 3.4 and 4.1 with cfengine 1.4.2 and
> 1.5.4.
> 
> mfg andy
> -- 
>      I am from Austria - but I did not vote for Joerg Haider and the FPOE.
> Administrative contact: address@hidden
> Vienna University of Technology - Database & Artificial Intelligence Group
> A-1040 Wien, Favoritenstr. 9-11  -  Tel.: ++43-1-58801/18429
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]