I am new to CF Engine and have been tasked by my manager to get a package installed on all our HP-UX systems. I have looked at the manuals (cfengine-Tutorial.pdf and cfengine-Reference.pdf) and can not seem to get something to work. I have a base configuration that seems to work but am having trouble testing to see if a pacakge is installed and if not installing it. I would like to use the packages functionality for this. I am using CF Engine 2.0.0
Can someone tell me if I'm the right path? I get an error the following as output: .... Import file /opt/cfengine/cfscripts/cf.test cf:myhost:/opt/cfengine/cfscripts/cf.test:13: parse error Import file /opt/cfengine/cfscripts/cf.test cf:myhost:/opt/cfengine/cfscripts/cf.test:3: Warning: invalid statement cf:myhost:/opt/cfengine/cfscripts/cf.test:3: parse error cf:myhost:/opt/cfengine/cfscripts/cf.test:5: Warning: invalid statement cf:myhost:/opt/cfengine/cfscripts/cf.test:5: parse error cf:myhost:/opt/cfengine/cfscripts/cf.test:6: Warning: invalid statement cf:myhost:/opt/cfengine/cfscripts/cf.test:6: parse error myhost:/opt/cfengine/cfscripts/cf.test:7: Warning: Redefinition of macro test=action=install cf:myhost:/opt/cfengine/cfscripts/cf.test:7: Warning: invalid statement cf:myhost:/opt/cfengine/cfscripts/cf.test:7: parse error cf:myhost:/opt/cfengine/cfscripts/cf.test:8: Warning: invalid statement cf:myhost:/opt/cfengine/cfscripts/cf.test:8: parse error myhost:/opt/cfengine/cfscripts/cf.test:Too many errors ######## update.conf ########### control: .... import: linux:: $(cfscripts)/cf.lxgroups $(cfscripts)/cf.linux hpux10:: #$(cfscripts)/cf.hpux $(cfscripts)/cf.test hpux11:: $(cfscripts)/cf.hpux ######### end of update.conf ########## ########## cf.test ########## control: actionsequence = ( packages ) packages: any:: test pkgmgr=swinstall action=install InstallCommand = ("/usr/sbin/swinstall -x reinstall=true -x mount_all_filesystems=false -s somesyste:/some/depot Test.Software") ########## end of cf.test ########## _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org http://cfengine.org/mailman/listinfo/help-cfengine