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 = {
|
||||
'/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',
|
||||
|
|
Loading…
Reference in a new issue