[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
help getting started
From: |
Kelly Brown |
Subject: |
help getting started |
Date: |
Mon, 17 Jan 2005 11:05:29 -0800 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20050107) |
Hi:
I'm hoping that somebody can point me in the right direction to get me
going. I'm VERY new to cfengine and can't seem to get past this on
stumbling block. When I run cfagent it wants the cfagent.conf file to
already be copied over. I thought that the first thing cfagent did was
to run the update.conf. So if my update.conf is ok then I should be
able to copy the cfagent.conf with that. It works if I copy the file
over myself and then run cfagent.
Also on the client, when I run cfagent, after coping the cfagent.conf
and the update.conf by hand, it copies everything into
/var/lib/cfagent2/inputs/inputs and /var/lib/cfagent2/inputs/bin. It
creates the bin and inputs directory where I just want the files to be
copied. I've tried all different changes to my configuration but it
still does this. I tried a striped down update.conf, it did the same thing.
I've attached the update.conf and cfagent.conf that I'm working with.
Also I'm running the cfengine2 from debian testing. It's 2.1.10-2.
Any help on this would be greatly appreciated, I'm sure I'm overlooking
something simple but I can't figure it out.
Thx
-Kelly
control:
actionsequence = ( copy processes tidy ) # Keep this simple and constant
domain = ( mydomain.com ) # Needed for remote copy
#
# Which host/dir is the master for configuration roll-outs?
#
policyhost = ( myhost )
master_cfinput = ( /var/lib/cfengine2/inputs )
AddInstallable = ( new_cfenvd new_cfservd )
#
# Some convenient variables
#
workdir = ( /var/lib/cfengine2 )
linux::
cf_install_dir = ( /usr/sbin )
###################################################################
#
# Spread the load, make sure the servers get done first though
#
###################################################################
!AllBinaryServers::
SplayTime = ( 1 )
############################################################################
#
# Make sure there is a local copy of the configuration and
# the most important binaries in case we have no connectivity
# e.g. for mobile stations or during DOS attacks
#
copy:
$(master_cfinput) dest=$(workdir)
recurse=1
mode=644
type=binary
exclude=*.lst
exclude=*~
exclude=#*
exclude=RCS*
exclude=*,v
server=$(policyhost)
$(cf_install_dir)/cfagent dest=$(workdir)/bin/cfagent
mode=755
backup=false
type=checksum
$(cf_install_dir)/cfservd dest=$(workdir)/bin/cfservd
mode=755
backup=false
type=checksum
define=new_cfservd
$(cf_install_dir)/cfexecd dest=$(workdir)/bin/cfexecd
mode=755
backup=false
type=checksum
$(cf_install_dir)/cfenvd dest=$(workdir)/bin/cfenvd
mode=755
backup=false
type=checksum
define=new_cfenvd
#####################################################################
tidy:
#
# Cfexecd stores output in this directory.
# Make sure we don't build up files and choke on our own words!
#
$(workdir)/outputs pattern=* age=14
#####################################################################
processes:
new_cfservd::
"cfservd" signal=term restart /var/cfengine/bin/cfservd
new_cfenvd::
"cfenvd" signal=kill restart "/var/cfengine/bin/cfenvd -H"
###
#
# END cf.update
#
###
control:
actionsequence = ( files directories tidy disable processes )
domain = ( mydomain.com )
timezone = ( PDT PST )
access = ( root )
# Where cfexecd sends reports
smtpserver = ( mail.mydomain.com )
sysadm = ( me.mydomain.com )
files:
/etc/passwd mode=644 owner=root action=fixall
/etc/shadow mode=600 owner=root action=fixall
/etc/group mode=644 owner=root action=fixall
directories:
/tmp mode=1777 owner=root group=root
tidy:
/tmp recurse=inf age=7 rmdirs=sub
disable:
/root/.rhosts
/etc/hosts.equiv
processes:
"cfservd" restart "/var/cfengine/bin/cfservd"
"cfexecd" restart "/var/cfengine/bin/cfexecd"
- help getting started,
Kelly Brown <=