Skip to content

Commit

Permalink
Merge branch 'branches/rudder/3.1' into branches/rudder/4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peckpeck committed Jun 7, 2017
2 parents b9cd434 + afeee9f commit c34b311
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions techniques/system/common/1.0/cron-setup.st
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ bundle agent setup_cronjob
# Cleanup the pre-4.0 crontab
"/var/spool/cron/crontabs/root"
edit_defaults => noempty_backup,
edit_line => delete_lines_matching("0,5,10,15,20,25,30,35,40,45,50,55 \* \* \* \* /usr/bin/test -x /opt/rudder/bin/check-rudder-agent \&\& /opt/rudder/bin/check-rudder-agent >/dev/null");
edit_line => delete_lines_matching("0,5,10,15,20,25,30,35,40,45,50,55 \* \* \* \* /usr/bin/test -x /opt/rudder/bin/rudder \&\& /opt/rudder/bin/rudder agent check >/dev/null");

# Add Rudder entry
"/var/spool/cron/crontabs/root"
create => "true",
perms => mog("600", "root", "cron"),
edit_line => insert_lines("0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/bin/test -x /opt/rudder/bin/rudder \&\& /opt/rudder/bin/rudder agent check >/dev/null"),
edit_line => insert_lines("0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/bin/test -x /opt/rudder/bin/check-rudder-agent \&\& /opt/rudder/bin/check-rudder-agent >> /var/log/rudder/agent-check/check.log 2>\&1"),
classes => rudder_common_classes("rudder_aix_crontab_insertion"),
comment => "Insert an AIX-compatible user crontab to run /opt/rudder/bin/rudder agent check";

Expand Down
3 changes: 3 additions & 0 deletions techniques/system/common/1.0/promises.st
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ bundle agent garbage_collection
"${sys.workdir}/promise_summary.log",
"${sys.workdir}/cf_notkept.log",
"${sys.workdir}/cf_repair.log",
"/var/log/rudder/agent-check/check.log",
};
files:
Expand All @@ -751,6 +752,8 @@ bundle agent garbage_collection
file_select => days_old("&MODIFIED_FILES_TTL&"),
depth_search => recurse("inf");
"/var/log/rudder/agent-check/." create => "true";
"${log_files_to_rotate}"
comment => "Rotate file if above specified size",
rename => rotate("10"),
Expand Down
2 changes: 1 addition & 1 deletion techniques/system/common/1.0/rudder-agent-community-cron
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# To temporarily avoid this behaviour, run 'rudder agent disable'
# Don't forget to remove that file when you're done!

0,5,10,15,20,25,30,35,40,45,50,55 * * * * root /opt/rudder/bin/rudder agent check >/dev/null
0,5,10,15,20,25,30,35,40,45,50,55 * * * * root /opt/rudder/bin/rudder agent check >> /var/log/rudder/agent-check/check.log 2>&1

0 comments on commit c34b311

Please sign in to comment.