1753523 Members
12432 Online
108795 Solutions
New Discussion юеВ

DSAU (aka "cfengine")

 
SOLVED
Go to solution
David Harwood
Occasional Advisor

DSAU (aka "cfengine")

Hi,

I am trying to set up DSAU for the first time. I've successfully configured the "cf.main" file and my initial testing has worked OK.

Currently, I have a class called "vmguests" which has 2 servers assigned to it.. i.e.


classes:

any::

#
# Add the class 'dsau' so we can setup cfengine in the specific manner
# that DSAU requires. This will work on any DSAU supported operating
# system type when the main DSAU directory is in place.
#
dsau = ( FileExists(/opt/dsau/sbin) )
# Example class to manage a set of web servers
# web_servers = ( server1 server2 loadbalancer )
vmguests = ( vmguest1 vmguest2 )

As I have a hundred or so vmguests in total, I would like to know if it's possible to have the vmguest names in a file that can be read into this variable rather than having to add them directly into the "cf.main" config file. Everything I've tried up to now has resulted in an error message...

Does anybody out there know if this can be done and if so, how?

Thanks in advance
8 REPLIES 8
mvpel
Trusted Contributor
Solution

Re: DSAU (aka "cfengine")

http://sunsite.ualberta.ca/Documentation/Gnu/cfengine-1.6.3/html_node/Reference/cfengine-Reference_78.html

To include a list of hosts from a NIS netgroup, you use the `+' symbol, or the `+@' construction. For example:

groups:

science = ( +science-allhosts )

physics = ( +physics-allhosts )

physics_theory = ( +@physics-theory-sun4 dirac feynman schwinger )

David Harwood
Occasional Advisor

Re: DSAU (aka "cfengine")

Unfortunately, we don't use NIS... thanks for the response though.
mvpel
Trusted Contributor

Re: DSAU (aka "cfengine")

What do you use?
David Harwood
Occasional Advisor

Re: DSAU (aka "cfengine")

We don't use anything other than standard HP-UX. Name resolution is provided via a separate DNS server.

Re: DSAU (aka "cfengine")

Well I guess you might be able to just use /etc/netgroup as long as /etc/nsswitch.conf contains a line with:

netgroup: files

look at the man page for negroup for details.

I'd then expect the syntax mentioned above for NIS to work for you...

HTH

Duncan

I am an HPE Employee
Accept or Kudo

Re: DSAU (aka "cfengine")

sorry, obviously:

> look at the man page for negroup for details

should have read:

look at the man page for netgroup for details

HTH

Duncan

I am an HPE Employee
Accept or Kudo
mvpel
Trusted Contributor

Re: DSAU (aka "cfengine")

http://docs.hp.com/en/B1031-90061/ch02s05.html#bghbdebd
"Creating Netgroups in the /etc/netgroup File"
David Harwood
Occasional Advisor

Re: DSAU (aka "cfengine")

Thanks to all that assisted.