bundles/grafana: fix file system permissions
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
d9595ad8e6
commit
eb6ae208cb
1 changed files with 14 additions and 0 deletions
|
@ -12,18 +12,28 @@ for row in Path(join(repo.path, 'bundles', 'grafana', 'dashboard-rows')).rglob("
|
||||||
|
|
||||||
directories = {
|
directories = {
|
||||||
'/etc/grafana/provisioning/dashboards': {
|
'/etc/grafana/provisioning/dashboards': {
|
||||||
|
'owner': 'grafana',
|
||||||
|
'group': 'grafana',
|
||||||
'purge': True,
|
'purge': True,
|
||||||
},
|
},
|
||||||
'/etc/grafana/provisioning/datasources': {
|
'/etc/grafana/provisioning/datasources': {
|
||||||
|
'owner': 'grafana',
|
||||||
|
'group': 'grafana',
|
||||||
'purge': True,
|
'purge': True,
|
||||||
},
|
},
|
||||||
'/etc/grafana/provisioning/notifiers': {
|
'/etc/grafana/provisioning/notifiers': {
|
||||||
|
'owner': 'grafana',
|
||||||
|
'group': 'grafana',
|
||||||
'purge': True,
|
'purge': True,
|
||||||
},
|
},
|
||||||
'/etc/grafana/provisioning/plugins': {
|
'/etc/grafana/provisioning/plugins': {
|
||||||
|
'owner': 'grafana',
|
||||||
|
'group': 'grafana',
|
||||||
'purge': True,
|
'purge': True,
|
||||||
},
|
},
|
||||||
'/var/lib/grafana/dashboards': {
|
'/var/lib/grafana/dashboards': {
|
||||||
|
'owner': 'grafana',
|
||||||
|
'group': 'grafana',
|
||||||
'purge': True,
|
'purge': True,
|
||||||
'triggers': {
|
'triggers': {
|
||||||
'svc_systemd:grafana-server:restart',
|
'svc_systemd:grafana-server:restart',
|
||||||
|
@ -36,6 +46,7 @@ files = {
|
||||||
'content_type': 'mako',
|
'content_type': 'mako',
|
||||||
'context': node.metadata['grafana'],
|
'context': node.metadata['grafana'],
|
||||||
'owner': 'grafana',
|
'owner': 'grafana',
|
||||||
|
'group': 'grafana',
|
||||||
'mode': '0640',
|
'mode': '0640',
|
||||||
'triggers': {
|
'triggers': {
|
||||||
'svc_systemd:grafana-server:restart',
|
'svc_systemd:grafana-server:restart',
|
||||||
|
@ -44,6 +55,7 @@ files = {
|
||||||
'/etc/grafana/provisioning/dashboards/bundlewrap.yaml': {
|
'/etc/grafana/provisioning/dashboards/bundlewrap.yaml': {
|
||||||
'source': 'dashboards.yaml',
|
'source': 'dashboards.yaml',
|
||||||
'owner': 'grafana',
|
'owner': 'grafana',
|
||||||
|
'group': 'grafana',
|
||||||
'mode': '0640',
|
'mode': '0640',
|
||||||
'triggers': {
|
'triggers': {
|
||||||
'svc_systemd:grafana-server:restart',
|
'svc_systemd:grafana-server:restart',
|
||||||
|
@ -123,6 +135,8 @@ if isdir(additional_path):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
files[f'/var/lib/grafana/dashboards/{file}'] = {
|
files[f'/var/lib/grafana/dashboards/{file}'] = {
|
||||||
|
'owner': 'grafana',
|
||||||
|
'group': 'grafana',
|
||||||
'source': join(node.name, 'dashboards', file),
|
'source': join(node.name, 'dashboards', file),
|
||||||
'triggers': {
|
'triggers': {
|
||||||
'svc_systemd:grafana-server:restart',
|
'svc_systemd:grafana-server:restart',
|
||||||
|
|
Loading…
Reference in a new issue