% means newline in cron, %% is an escaped %.
}
} else {
file { '/etc/cron.d/puppet-weblog-provider':
- content => "SHELL=/bin/bash\n\n0 */4 * * * weblogsync sleep $((RANDOM % 1800)); rsync -a --delete-excluded --include '*-public-access.log-*gz' --exclude '**' /var/log/apache2/. weblogsync@ravel:-weblogs-incoming-\n",
+ content => "SHELL=/bin/bash\n\n0 */4 * * * weblogsync sleep $((RANDOM %& 1800)); rsync -a --delete-excluded --include '*-public-access.log-*gz' --exclude '**' /var/log/apache2/. weblogsync@ravel:-weblogs-incoming-\n",
}
}
}