cron charm

  • By rmescandon
  • Latest version (#0)
  • xenial, trusty
  • Stable

Description

Cronify delivers a single cron.d file and a payload for executing scheduled
tasks.


Cronify

Cron.d file contents

To encode the cron.d file:

$ base64 -w 0 my-cron-file

Then use the contents as the value for the 'cron_data' option.
A quick way to set this would be

$ juju set cron/0 cron_data=$(base64 -w 0 my-cron-file)

Payload contents

Create a file named payload.tgz and add bundle it with the charm under
'${CHARM_DIR}/files'.

Configuration

cron_data
(string) A base64 encoded string containing the contents of the cron.d file.
payload_target
(string) The target path for the $CHARM_DIR/files/payload.tgz contents
cron_file_name
(string) The name of the cron.d file.