nix machine / user configurations

refactor(wolumonde): make perses provision use yaml

ptr.pet 0185858b cc855dab

verified
-22
hosts/wolumonde/modules/perses/provision/10-victoria.json
···
-
[
-
{
-
"kind": "GlobalDatasource",
-
"metadata": {
-
"name": "victoria"
-
},
-
"spec": {
-
"default": false,
-
"plugin": {
-
"kind": "PrometheusDatasource",
-
"spec": {
-
"proxy": {
-
"kind": "HTTPProxy",
-
"spec": {
-
"url": "http://localhost:8428"
-
}
-
}
-
}
-
}
-
}
-
}
-
]
+12
hosts/wolumonde/modules/perses/provision/10-victoria.yaml
···
+
- kind: GlobalDatasource
+
metadata:
+
name: victoria
+
spec:
+
default: true
+
plugin:
+
kind: PrometheusDatasource
+
spec:
+
proxy:
+
kind: HTTPProxy
+
spec:
+
url: http://localhost:8428
-20
hosts/wolumonde/modules/perses/provision/2-admin-role.json
···
-
[
-
{
-
"kind": "GlobalRole",
-
"metadata": {
-
"name": "admin"
-
},
-
"spec": {
-
"permissions": [
-
{
-
"actions": [
-
"*"
-
],
-
"scopes": [
-
"*"
-
]
-
}
-
]
-
}
-
}
-
]
+9
hosts/wolumonde/modules/perses/provision/2-admin-role.yaml
···
+
- kind: GlobalRole
+
metadata:
+
name: admin
+
spec:
+
permissions:
+
- actions:
+
- '*'
+
scopes:
+
- '*'
-17
hosts/wolumonde/modules/perses/provision/3-admin-bind-role.json
···
-
[
-
{
-
"kind": "GlobalRoleBinding",
-
"metadata": {
-
"name": "admin"
-
},
-
"spec": {
-
"role": "admin",
-
"subjects": [
-
{
-
"kind": "User",
-
"name": "admin"
-
}
-
]
-
}
-
}
-
]
+8
hosts/wolumonde/modules/perses/provision/3-admin-bind-role.yaml
···
+
- kind: GlobalRoleBinding
+
metadata:
+
name: admin
+
spec:
+
role: admin
+
subjects:
+
- kind: User
+
name: admin