Skip to content

Commit

Permalink
doc scheduled reccuring task creation
Browse files Browse the repository at this point in the history
  • Loading branch information
zerwes committed Jun 10, 2024
1 parent 64ae3b0 commit 3599258
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ currently tested with different ansible versions (2.9 - 2.16) and:
* debian 11
* ubuntu 22.04
* ubuntu 20.04

## scheduled task creation

it includes a script and vars to configure scheduled reccuring task creation.

it requires [hiyapyco](https://github.com/zerwes/hiyapyco)
24 changes: 24 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,28 @@ openproject_update_installerdat: {}
# install the health check for ckeckmk
openproject_use_checkmk_check: false

# vault this!
# openproject_automation_api_token: ...

# scheduled task creation
openproject_scheduled_reccuring_tasks: {}
# example:
# openproject_scheduled_reccuring_tasks:
# puddingtime:
# # crontab time: min hour dayofmonth month dayofweek
# cron: '30 14 * * * *'
# # check: additional check like [ "$(date '+\%u')" = "3" ]
# args:
# subject: 'Test Task @ {NOW}'
# description: |
# Test for {MY} created {TODAY}
# Now {NOW} it's pudding time!
# projectid: 10
# # assigngroupid: 13
# assignuserid: 5
openproject_scheduled_reccuring_cronfile: /etc/cron.d/openproject-scheduled-tasks
openproject_scheduled_reccuring_confprefix: /usr/local/etc/openprojectscheduled-
openproject_scheduled_reccuring_user: root


# vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2 smartindent nu ft=yaml

0 comments on commit 3599258

Please sign in to comment.