RE: CFEngine Help: Utilising debian backports

2011-10-12 Thread Andreas Dan Larsson
> Does anybody have some magic foo for dealing with packages from backports on > debian/ubuntu systems? I'd like to pull certain newer packages from > backports, but keep the bulk of the system from stable. You can use the interface /etc/apt/preferences or /etc/apt/preferenses.d/ (man apt_

RE: Help with server access rules

2010-06-22 Thread Andreas Dan Larsson
Sorry guys, I found my error it was related to not running the policy that I though I was running.. /Andreas > Hi guys, > > Im trying to get the server to serve individual folders to my clients > for distributing sensitive data. The folder is named as the fully > qualified hostname of the cl

Help with server access rules

2010-06-22 Thread Andreas Dan Larsson
Hi guys, Im trying to get the server to serve individual folders to my clients for distributing sensitive data. The folder is named as the fully qualified hostname of the client who is supposed to access it. Im using community edition 3.0.4 from debian. Shouldn't this work? And is there a way

RE: Standard library: apt package method

2010-01-26 Thread Andreas Dan Larsson
> > I would recommend that you check if the install is successful and > > run aptitude update if its not. If a updated package is published > > since you ran "aptitude update" you will get a 404 on your request > > for the older version. I think this would be the most elegant thing > > to do, ins

RE: Standard library: apt package method

2010-01-26 Thread Andreas Dan Larsson
I would recommend that you check if the install is successful and run aptitude update if its not. If a updated package is published since you ran "aptitude update" you will get a 404 on your request for the older version. I think this would be the most elegant thing to do, instead of failing to

promise is always repaired when empty_file_before_editing is used

2010-01-12 Thread Andreas Dan Larsson
Hi list, I have some troubles with my cfengine policy that I have isolated in this example. When I run this policy cfengine tells me that my promise have been repaired. # cf-agent -vKf ./test.cf .. [snip] Promises observed to be kept 67%, Promises repaired 33%, Promises not repaired 0% If

RE: How to get local ip address

2009-12-16 Thread Andreas Dan Larsson
> HI, everyone, is there a way to get local ip address in cfengine3? Hi, You could use the builtin variable for hostname $(sys.fqhost) and use that to get the ip from you nameservice Perhaps something in the lines of: "ip" string => execresult("host $(sys.fqhost) | sed -ne 's/$(sys.fqhost) ha