error: Bundle 'mycleanup' listed in the bundlesequence is not a defined bundle

285 views
Skip to first unread message

Jonathan Bayer

unread,
Jun 19, 2013, 3:06:37 PM6/19/13
to help-c...@googlegroups.com
I'm having a strange error.   I'm working my way through a beginning configuration located at http://unix-heaven.org/node/53


I have a file:


# A bundle for cleaning up old and not needed files and directories
bundle agent mycleanup {

files:

    # Cleanup old reports
    "$(sys.workdir)/outputs"

        comment         => "Clean up reports older than 3 days",
        delete          => tidy,
        file_select     => days_old("3"),
        depth_search    => recurse("inf");
}

The file is included in the inputs section in the promises.cf (I tested by renaming the file).

cf-agent -KI  -f ./promises.cf 

Yet when I run this command, I get the following error:

2013-06-19T15:02:33-0400    error: Bundle 'mycleanup' listed in the bundlesequence is not a defined bundle
2013-06-19T15:02:33-0400    error: Fatal CFEngine error: Errors in promise bundles

so, what am I doing wrong here?  This is on running CF-Engine-3 3.5.0

Thanks in advance


JBB
--
The light at the end of the tunnel may be an oncoming Dragon

Ted Zlatanov

unread,
Jun 21, 2013, 5:15:26 AM6/21/13
to Jonathan Bayer, help-c...@googlegroups.com
Define a mycleanup bundle in promises.cf and see if there's a conflict.  If not, you're definitely not including cleanup.cf somehow.  Or maybe you've namespaced cleanup.cf?

Look at `cf-agent -v' to be sure...  and if possible, show a minimal example we can run to check.

Ted


--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengin...@googlegroups.com.
To post to this group, send email to help-c...@googlegroups.com.
Visit this group at http://groups.google.com/group/help-cfengine.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages