bundlewrap/bundles/icingaweb2/items.py
mwiegand 1320f6fcb3 wip
2022-08-17 23:49:00 +02:00

36 lines
789 B
Python

directories = {
'/etc/icingaweb2': {
# 'purge': True,
'owner': 'www-data',
'group': 'icingaweb2',
'mode': '2770',
'needs': [
'pkg_apt:icinga2',
'pkg_apt:icingaweb2',
],
},
}
files = {
'/etc/icingaweb2/setup.token': {
'content': node.metadata.get('icingaweb2/setup_token'),
'owner': 'www-data',
'group': 'icingaweb2',
'mode': '0660',
},
}
for name in [
'authentication.ini',
'config.ini',
'groups.ini',
'resources.ini',
'roles.ini',
]:
files[f'/etc/icingaweb2/{name}'] = {
'content': repo.libs.ini.dumps(node.metadata.get(f'icingaweb2/{name}')),
'owner': 'www-data',
'group': 'icingaweb2',
'mode': '0660',
}