-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
39 lines (34 loc) · 1.26 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 2022 HUNT Cloud
# See LICENSE file for licensing details.
#
# Learn more about config at: https://juju.is/docs/sdk/config
options:
playbook:
default: |
- hosts: localhost
connection: local
become: true
gather_facts: false
tasks: []
type: string
description: |
Ansible playbook file.
Use yaml file with keys environment and hosts.
Bundle example: 'include-file://files/playbook.yaml'
Command example: 'juju config app_name playbook=@playbook.yaml'
storage_mount:
default: ""
type: string
description: |
If storage is added, it will be bind mounted on this path.
Default: /opt/charm-ansible/<app_name>/storage
crontab:
default: ""
type: string
description: |
Crontab config for running regular tasks. Use multiple lines to add more cron jobs.
Cron jobs will be placed in /etc/cron.d/charm_<app_name> config file.
https://help.ubuntu.com/community/CronHowto#:~:text=Two%20Other%20Types%20of%20Crontab,-The%20crontab
Formatting: '<minute> <hour> <day> <month> <weekday> <username> <script-with-parameters>'
Example: '0 0 * * * root /usr/bin/true'
Configure from example file: 'juju config $app_name playbook=@bundles/crontab.txt'