[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AutoDefine
From: |
Brendan Strejcek |
Subject: |
Re: AutoDefine |
Date: |
Mon, 26 Apr 2004 22:13:36 -0500 |
User-agent: |
Mutt/1.3.28i |
It's not working for me either:
$ cfagent --version | head -1
GNU cfengine 2.1.5
$ cat AutoDefine.cf
#!/usr/sbin/cfagent -qIKf
control:
AddInstallable = ( asdf )
actionsequence = ( copy shellcommands )
asdf:: autodefine = ( /etc/passwd )
copy: /etc/passwd dest=/tmp/passwd
shellcommands: asdf:: "/bin/echo asdf defined"
$ ./AutoDefine.cf
cfengine:: Copying from localhost:/etc/passwd
cfengine:: Owner of /tmp/passwd was 666, setting to 0
cfengine:: Group of /tmp/passwd was 666, setting to 0
cfengine:: Object /tmp/passwd had permission 600, changed it to 444
I also tried 2.1.3.
By the way, that is the strangest syntax I have ever seen. It
seems to fly in the face of cfengine conventions. Much more natural would
be something like:
AutoDefine = ( /some/file someclass )
I always read "token:: action" as "do action contingent upon token" but
this reverses things.
I don't actually want to use AutoDefine anywhere, but if the docs are
wrong they should probably be updated.
-- Brendan
PS:
> copy:
> $(masterfiles)/startup_script
> dest=/etc/init.d/startup_script
> o=root g=sys mode=555
> server=($policyhost) type=checksum
^^^^^^^^^^^^^
I assume this was a typo, as I could reproduce the problem.
- AutoDefine, Douglas Reitmeier, 2004/04/26
- Re: AutoDefine,
Brendan Strejcek <=