I've opened a ticket with Cfengine but I wanted to see if anyone else
can replicate this problem. I've whittled it down to its essence, having
copied in the library.cf:mog() body for test consistency. Basically, I
cannot seem to get Cfengine Nova to create a directory and set its
ownership and permissions. I have tested this on RHEL 5 and Solaris 10.
Can anyone duplicate this?
Thanks,
Justin
[r...@gdcscf3lgmt01 masterfiles.devel]# cat dirtest.cf
body common control {
bundlesequence => { "test" };
}
bundle agent test {
files:
"/var/testdir/."
create => "true",
perms => mog("0775", "root", "sys");
}
body perms mog(mode,user,group)
{
owners => { "$(user)" };
groups => { "$(group)" };
mode => "$(mode)";
}
[r...@gdcscf3lgmt01 masterfiles.devel]# ls -ld /var/testdir
ls: /var/testdir: No such file or directory
[r...@gdcscf3lgmt01 masterfiles.devel]# /var/cfengine/bin/cf-agent -vKf
./dirtest.cf
[...snipped output for brevity...]
nova> .........................................................
nova> Promise handle: promise_dirtest_cf_9
nova> Promise made by: /var/testdir/.
nova> .........................................................
nova>
nova> -> Using literal pathtype for /var/testdir/.
nova> -> Created directory /var/testdir/.
nova> -> Handling file existence constraints on /var/testdir/.
nova> -> Promise to skip base directory /var/testdir/.
nova>
nova> + Private classes augmented:
nova>
nova> - Private classes diminished:
nova>
nova>
nova>
nova> =========================================================
nova> files in bundle test (2)
nova> =========================================================
nova>
nova>
nova> + Private classes augmented:
nova>
nova> - Private classes diminished:
nova>
nova>
nova>
nova> =========================================================
nova> files in bundle test (3)
nova> =========================================================
nova>
nova> Outcome of version (not specified) (agent-0): Promises observed to
be kept 50%, Promises repaired 50%, Promises not repaired 0%
[r...@gdcscf3lgmt01 masterfiles.devel]# ls -ld /var/testdir
drwxr-xr-x 2 root root 4096 Feb 16 23:12 /var/testdir
[r...@gdcscf3lgmt01 masterfiles.devel]#
This electronic communication and any attachments may contain confidential and
proprietary
information of DigitalGlobe, Inc. If you are not the intended recipient, or an
agent or employee
responsible for delivering this communication to the intended recipient, or if
you have received
this communication in error, please do not print, copy, retransmit, disseminate
or
otherwise use the information. Please indicate to the sender that you have
received this
communication in error, and delete the copy you received. DigitalGlobe reserves
the
right to monitor any electronic communication sent or received by its
employees, agents
or representatives.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine