Compare commits
4 commits
3256329064
...
4a5711a570
Author | SHA1 | Date | |
---|---|---|---|
4a5711a570 | |||
0cf83d0744 | |||
5e66318c38 | |||
53d22e8c67 |
6 changed files with 24 additions and 12 deletions
|
@ -18,7 +18,7 @@ admin_password = node.metadata.get('grafana/config/security/admin_password')
|
||||||
port = node.metadata.get('grafana/config/server/http_port')
|
port = node.metadata.get('grafana/config/server/http_port')
|
||||||
actions['reset_grafana_admin_password'] = {
|
actions['reset_grafana_admin_password'] = {
|
||||||
'command': f"sleep 5 && grafana-cli admin reset-admin-password {quote(admin_password)}",
|
'command': f"sleep 5 && grafana-cli admin reset-admin-password {quote(admin_password)}",
|
||||||
'unless': f"curl http://admin:{quote(admin_password)}@localhost:{port}/api/org",
|
'unless': f"curl http://admin:{quote(admin_password)}@localhost:{port}/api/org --fail-with-body",
|
||||||
'needs': [
|
'needs': [
|
||||||
'svc_systemd:grafana-server',
|
'svc_systemd:grafana-server',
|
||||||
],
|
],
|
||||||
|
@ -35,6 +35,8 @@ directories = {
|
||||||
},
|
},
|
||||||
'/var/lib/grafana': {},
|
'/var/lib/grafana': {},
|
||||||
'/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',
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
|
|
||||||
cd "$OLDPWD"
|
cd "$OLDPWD"
|
||||||
|
|
||||||
export BW_ITEM_WORKERS=$(expr $(nproc) '*' 2)
|
export BW_ITEM_WORKERS=$(expr "$(nproc)" '*' 15 '/' 10)
|
||||||
export BW_NODE_WORKERS=$(expr 256 '/' "$BW_ITEM_WORKERS")
|
export BW_NODE_WORKERS=$(expr 320 '/' "$BW_ITEM_WORKERS")
|
||||||
|
|
|
@ -3,6 +3,14 @@
|
||||||
'debian',
|
'debian',
|
||||||
],
|
],
|
||||||
'metadata': {
|
'metadata': {
|
||||||
|
'apt': {
|
||||||
|
'sources': {
|
||||||
|
'deb https://deb.debian.org/debian {codename} main contrib non-free',
|
||||||
|
'deb https://deb.debian.org/debian {codename}-updates main contrib non-free',
|
||||||
|
'deb https://deb.debian.org/debian {codename}-backports main contrib non-free',
|
||||||
|
'deb https://security.debian.org/ {codename}-security main contrib non-free',
|
||||||
|
},
|
||||||
|
},
|
||||||
'php': {
|
'php': {
|
||||||
'version': '7.4',
|
'version': '7.4',
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,11 +3,19 @@
|
||||||
'debian',
|
'debian',
|
||||||
],
|
],
|
||||||
'metadata': {
|
'metadata': {
|
||||||
|
'apt': {
|
||||||
|
'sources': {
|
||||||
|
'deb https://deb.debian.org/debian {codename} main contrib non-free non-free-firmware',
|
||||||
|
'deb https://deb.debian.org/debian {codename}-updates main contrib non-free non-free-firmware',
|
||||||
|
'deb https://deb.debian.org/debian {codename}-backports main contrib non-free non-free-firmware',
|
||||||
|
'deb https://security.debian.org/ {codename}-security main contrib non-free non-free-firmware',
|
||||||
|
},
|
||||||
|
},
|
||||||
'php': {
|
'php': {
|
||||||
'version': '8.1',
|
'version': '8.2',
|
||||||
},
|
},
|
||||||
'postgresql': {
|
'postgresql': {
|
||||||
'version': '14',
|
'version': '15',
|
||||||
},
|
},
|
||||||
'os_codename': 'bookworm',
|
'os_codename': 'bookworm',
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,12 +9,6 @@
|
||||||
],
|
],
|
||||||
'metadata': {
|
'metadata': {
|
||||||
'apt': {
|
'apt': {
|
||||||
'sources': {
|
|
||||||
'deb https://deb.debian.org/debian {codename} main contrib non-free',
|
|
||||||
'deb https://deb.debian.org/debian {codename}-updates main contrib non-free',
|
|
||||||
'deb https://deb.debian.org/debian {codename}-backports main contrib non-free',
|
|
||||||
'deb https://security.debian.org/ {codename}-security main contrib non-free',
|
|
||||||
},
|
|
||||||
'packages': {
|
'packages': {
|
||||||
'mtr-tiny': {},
|
'mtr-tiny': {},
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
bundlewrap~=4.17
|
bundlewrap ~=4.0, >=4.17.2
|
||||||
pycryptodome
|
pycryptodome
|
||||||
PyNaCl
|
PyNaCl
|
||||||
PyYAML
|
PyYAML
|
||||||
|
|
Loading…
Reference in a new issue