bundles/grafana: fix file system permissions
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-05-15 07:31:27 +02:00
parent d9595ad8e6
commit eb6ae208cb
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -12,18 +12,28 @@ for row in Path(join(repo.path, 'bundles', 'grafana', 'dashboard-rows')).rglob("
directories = {
'/etc/grafana/provisioning/dashboards': {
'owner': 'grafana',
'group': 'grafana',
'purge': True,
},
'/etc/grafana/provisioning/datasources': {
'owner': 'grafana',
'group': 'grafana',
'purge': True,
},
'/etc/grafana/provisioning/notifiers': {
'owner': 'grafana',
'group': 'grafana',
'purge': True,
},
'/etc/grafana/provisioning/plugins': {
'owner': 'grafana',
'group': 'grafana',
'purge': True,
},
'/var/lib/grafana/dashboards': {
'owner': 'grafana',
'group': 'grafana',
'purge': True,
'triggers': {
'svc_systemd:grafana-server:restart',
@ -36,6 +46,7 @@ files = {
'content_type': 'mako',
'context': node.metadata['grafana'],
'owner': 'grafana',
'group': 'grafana',
'mode': '0640',
'triggers': {
'svc_systemd:grafana-server:restart',
@ -44,6 +55,7 @@ files = {
'/etc/grafana/provisioning/dashboards/bundlewrap.yaml': {
'source': 'dashboards.yaml',
'owner': 'grafana',
'group': 'grafana',
'mode': '0640',
'triggers': {
'svc_systemd:grafana-server:restart',
@ -123,6 +135,8 @@ if isdir(additional_path):
continue
files[f'/var/lib/grafana/dashboards/{file}'] = {
'owner': 'grafana',
'group': 'grafana',
'source': join(node.name, 'dashboards', file),
'triggers': {
'svc_systemd:grafana-server:restart',