bundlewrap/bundles/icingadb/items.py
mwiegand b9b025a316 wip
2022-08-17 23:49:00 +02:00

14 lines
356 B
Python

import yaml, json
from bundlewrap.metadata import MetadataJSONEncoder
files = {
'/etc/icingadb/config.yml': {
'content': yaml.dump(
json.loads(
json.dumps(node.metadata.get('icingadb'), sort_keys=True, cls=MetadataJSONEncoder)
),
),
'mode': '0640',
'owner': 'icingadb',
},
}