bundles/grafana: fix permissions for some files and directories
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
cbc0a1a927
commit
9021c6f853
1 changed files with 4 additions and 5 deletions
|
@ -11,28 +11,25 @@ for row in Path(join(repo.path, 'bundles', 'grafana', 'dashboard-rows')).rglob("
|
||||||
exec(f.read())
|
exec(f.read())
|
||||||
|
|
||||||
directories = {
|
directories = {
|
||||||
|
# Don't ask me why these permissions are that weird. It's what the
|
||||||
|
# debian package sets them to after upgrades.
|
||||||
'/etc/grafana/provisioning/dashboards': {
|
'/etc/grafana/provisioning/dashboards': {
|
||||||
'owner': 'grafana',
|
|
||||||
'group': 'grafana',
|
'group': 'grafana',
|
||||||
'purge': True,
|
'purge': True,
|
||||||
},
|
},
|
||||||
'/etc/grafana/provisioning/datasources': {
|
'/etc/grafana/provisioning/datasources': {
|
||||||
'owner': 'grafana',
|
|
||||||
'group': 'grafana',
|
'group': 'grafana',
|
||||||
'purge': True,
|
'purge': True,
|
||||||
},
|
},
|
||||||
'/etc/grafana/provisioning/notifiers': {
|
'/etc/grafana/provisioning/notifiers': {
|
||||||
'owner': 'grafana',
|
|
||||||
'group': 'grafana',
|
'group': 'grafana',
|
||||||
'purge': True,
|
'purge': True,
|
||||||
},
|
},
|
||||||
'/etc/grafana/provisioning/plugins': {
|
'/etc/grafana/provisioning/plugins': {
|
||||||
'owner': 'grafana',
|
|
||||||
'group': 'grafana',
|
'group': 'grafana',
|
||||||
'purge': True,
|
'purge': True,
|
||||||
},
|
},
|
||||||
'/var/lib/grafana/dashboards': {
|
'/var/lib/grafana/dashboards': {
|
||||||
'owner': 'grafana',
|
|
||||||
'group': 'grafana',
|
'group': 'grafana',
|
||||||
'purge': True,
|
'purge': True,
|
||||||
'triggers': {
|
'triggers': {
|
||||||
|
@ -129,6 +126,8 @@ for rnode in repo.nodes:
|
||||||
dashboard['tags'].add('zfs')
|
dashboard['tags'].add('zfs')
|
||||||
|
|
||||||
files[f'/var/lib/grafana/dashboards/{rnode.name}.json'] = {
|
files[f'/var/lib/grafana/dashboards/{rnode.name}.json'] = {
|
||||||
|
'owner': 'grafana',
|
||||||
|
'group': 'grafana',
|
||||||
# use metadata_to_json, because this supports sets
|
# use metadata_to_json, because this supports sets
|
||||||
'content': metadata_to_json(dashboard),
|
'content': metadata_to_json(dashboard),
|
||||||
'triggers': {
|
'triggers': {
|
||||||
|
|
Loading…
Reference in a new issue