Re: [Infrastructures] porting isconf to cfengine

Vilius Puidokas <[email protected]>
Newsgroups gmane.comp.sysutils.isconf.devel
Message-ID <Pine.LNX.4.21.0301231240220.10445-100000@andros.fantasy.commissioner.com>
On Wed, 22 Jan 2003, Luke A. Kanies wrote:

> I'm planning on implementing some stuff in cfenine in the near future --
[snip]
> 
> The only thing I haven't fully decided how to transfer from the hosts file
> to a cfengine config is variables.  I'm not setting very many variables in
> isconf, and in fact all of the ones I'm currently setting are used as
> stanza names which are basically equivalent to classing (e.g., things like
> "IP=1.1.1.1", which gets used in a stanza: "ifconfig/lan0--$IP"), so this
> may not be a barrier, but I'd still like that ability.

 in my company we use cf (1.6.3 still) quite heavily. we wrote a wrapper
script to solve variables problem: it seems that var = ( `escaped shell
cmd` ) just doesn't work. All the wrapper does is tries determining
certain vars (like calculating IPs or reading in our product env files)
then generates variables.cf which cfengine import:'s.

the wrapper is quite site specific and also uses our product-env api
(just a way to source in a right hash file), but if anyone interested i
can provide the source (perl).

.02$: our stand on old-like-world push vs pull: if it's <10 boxes (in most
cases golden box clones in different datacenters) --push else pull.
v



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.