Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #8340: logrotate promise for CFEngine Enterprise agents #936

Conversation

ncharles
Copy link
Member

@@ -1552,6 +1552,14 @@ body file_select size_range(from,to)

##

body file_select size_range(from,to)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a duplicate of the lines above

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed ...

@ncharles ncharles force-pushed the bug_8340/logrotate_promise_for_cfengine_enterprise_agents branch from 2e09c54 to d9f4cee Compare May 20, 2016 10:38
@ncharles
Copy link
Member Author

Commit modified

"${log_files_to_rotate}"
comment => "Rotate file if above specified size",
rename => rotate("10"),
file_select => bigger_than("1M");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this fail / complain in the files are missing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not at all.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/var/rudder/cfengine-community//bin/cf-agent -KIb garbage_collection
2016-05-20T12:35:37+0200 info: Using command line specified bundlesequence
2016-05-20T12:35:37+0200 info: /default/garbage_collection/files/'/var/rudder/cfengine-community/outputs'[0]: Deleted file '/var/rudder/cfengine-community/outputs/cf_orchestrateur_1_labo_normation_com__1463135408_Fri_May_13_12_30_08_2016_0x7fcb3ef97700'
2016-05-20T12:35:47+0200 info: /default/garbage_collection/files/'/var/rudder/cfengine-community/promise_summary.log'[1]: Rotating files '/var/rudder/cfengine-community/promise_summary.log' in 10 fifo

@jooooooon jooooooon merged commit 02f3373 into Normation:branches/rudder/2.11 May 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants