Package Manager for AIX

2011-02-13 Thread Jones, Stephen (MAS)
All, I've just started to use cfengine at my company and we have a mixture of Linux, Solaris & AIX. I want to check for packages across all of these system and examples are available for Linux & Solaris however not for AIX. Here is what I have so far but it isn't working. I suspect it is someth

RE: Package Manager for AIX

2011-02-13 Thread Jones, Stephen (MAS)
uot;; package_delete_command => "/bin echo dummy"; package_verify_command => "/usr/bin/lppchk -fm3"; } From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of Jones, Stephen (MAS) Sent: Monday, 14 February 2011 1:14 PM To: h

Global vars issue

2011-03-06 Thread Jones, Stephen (MAS)
All, I'm having some issues expanding global variables defined in my site.cf within a command. Site.cf extract:- bundle common g { vars: # Managed user account names "user_name" slist => {"test1", "test2", "test3", "test4",

Managing sudoers files with exisiting entries

2011-03-10 Thread Jones, Stephen (MAS)
All, I'm trying to integrate cfengine3 into an environment that is already heavily configured. I'm currently working on a solution for the sudoers file which appears to be slightly different on about every host I've looked at! The solution I've come up with is to create a location in the existi

regex problem - version 3.1.4

2011-05-17 Thread Jones, Stephen (MAS)
Hi all, I'm trying to do the simplest thing and it's becoming very frustrating. In my present company someone wrote a shell script to clean up files, rotate logs etc and I'm trying to replicate it's functionality with cfengine. Here is what I have so far... body common control { bundlesequence

RE: regex problem - version 3.1.4

2011-05-22 Thread Jones, Stephen (MAS)
)", delete => tidy_keep_dirs, file_select => plain_filename_days_old("$(cr[$(cdn)])","$(creg[$(cdn)])"), depth_search => recurse("$(ctd[$(cdn)])"), ifvarclass => canonify("$(cd[$(cdn)])"), action => log; commands: "

RE: Cfengine Help: Binaries?

2011-05-24 Thread Jones, Stephen (MAS)
http://www.perzl.org/aix/index.php?n=Main.Cfengine AIX Binaries not sure about HPUX Cheers -Original Message- From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of no-re...@cfengine.com Sent: Wednesday, 25 May 2011 4:34 AM To: help-cfengine@cf

Reports - Overwrite data from previous report

2011-06-28 Thread Jones, Stephen (MAS)
I'm reporting on old user accounts and I'd like to output this data to a file. reports: cfengine_3:: "WARNING - user=\"$(user)\" last_logon=\"$(logon_time)\" gecko=\"$(userdata[5])\""; "WARNING - user=\"$(user)\" last_logon=\"$(logon_time)\" gecko=\"$(userdata[5])\"" report_to