Hi, we've been experiencing a bug lately whereby shell commands are not
executing correctly.  We have tracked the problem down to the fact that
we split out our copies into many different files, which are imported by
cf.copy.  

We are running CFEngine 2.2.3 on RHEL 4.2.

Example:

###################################################
#
# BEGIN cf.copy
#
###
import:
  any::
    /data01/cfengine/inputs/copy.d/copy.hosts
    /data01/cfengine/inputs/copy.d/copy.ntp.conf
    ...

copy:
...

###################################################

$ cat copy.d/copy.hosts
# /etc/hosts
copy:

(group_c.group_a).group_b::
    $(filestore)/hosts dest=/etc/hosts
    mode=444 o=root g=root type=checksum
    server=$(policyhost)

###################################################

$ cat copy.d/copy.ntp.conf
# /etc/ntp.conf
copy:

linux::
  $(filestore)/ntp.conf dest=/etc/ntp.conf
    mode=444 o=root g=root type=checksum
    server=$(policyhost)
    define=ntp_restart

###################################################

For certain files (like the ntp.conf above) we would like to restart
ntpd afterwards.  Now, this was working fine before we started splitting
files out into separate imports, but it's not working now.  If we move
the class definition for the ntp.conf back into the main cf.copy, things
work perfectly.

We have a very large environment, with dozens of managed files, so we
would really like to stick with this method of splitting out files and
importing them, but these issues are really starting to cause problems.

Has anyone seen this before?  Has anyone reported this bug before?

Thanks,


James Cammarata

______________________________________________________________________
This message contains information which may be confidential and/or privileged. 
Unless you are the intended recipient (or authorized to receive for the 
intended recipient), you may not read, use, copy or disclose to anyone the 
message or any information contained in the message. If you have received the 
message in error, please advise the sender by reply e-mail and delete the 
message and any attachment(s) thereto without retaining any copies.
______________________________________________________________________

_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to