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')
|
||||
actions['reset_grafana_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': [
|
||||
'svc_systemd:grafana-server',
|
||||
],
|
||||
|
@ -35,6 +35,8 @@ directories = {
|
|||
},
|
||||
'/var/lib/grafana': {},
|
||||
'/var/lib/grafana/dashboards': {
|
||||
'owner': 'grafana',
|
||||
'group': 'grafana',
|
||||
'purge': True,
|
||||
'triggers': [
|
||||
'svc_systemd:grafana-server:restart',
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
cd "$OLDPWD"
|
||||
|
||||
export BW_ITEM_WORKERS=$(expr $(nproc) '*' 2)
|
||||
export BW_NODE_WORKERS=$(expr 256 '/' "$BW_ITEM_WORKERS")
|
||||
export BW_ITEM_WORKERS=$(expr "$(nproc)" '*' 15 '/' 10)
|
||||
export BW_NODE_WORKERS=$(expr 320 '/' "$BW_ITEM_WORKERS")
|
||||
|
|
|
@ -3,6 +3,14 @@
|
|||
'debian',
|
||||
],
|
||||
'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': {
|
||||
'version': '7.4',
|
||||
},
|
||||
|
|
|
@ -3,11 +3,19 @@
|
|||
'debian',
|
||||
],
|
||||
'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': {
|
||||
'version': '8.1',
|
||||
'version': '8.2',
|
||||
},
|
||||
'postgresql': {
|
||||
'version': '14',
|
||||
'version': '15',
|
||||
},
|
||||
'os_codename': 'bookworm',
|
||||
},
|
||||
|
|
|
@ -9,12 +9,6 @@
|
|||
],
|
||||
'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',
|
||||
},
|
||||
'packages': {
|
||||
'mtr-tiny': {},
|
||||
},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
bundlewrap~=4.17
|
||||
bundlewrap ~=4.0, >=4.17.2
|
||||
pycryptodome
|
||||
PyNaCl
|
||||
PyYAML
|
||||
|
|
Loading…
Reference in a new issue