Compare commits

...

4 commits

Author SHA1 Message Date
4a5711a570
macbook more bw threads 2023-06-26 19:37:42 +02:00
0cf83d0744
some grafana bundle fixes 2023-06-26 19:37:30 +02:00
5e66318c38
debian 12 preps 2023-06-26 19:37:21 +02:00
53d22e8c67
more precise requriements.txt 2023-06-26 19:36:48 +02:00
6 changed files with 24 additions and 12 deletions

View file

@ -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',

View file

@ -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")

View file

@ -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',
}, },

View file

@ -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',
}, },

View file

@ -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': {},
}, },

View file

@ -1,4 +1,4 @@
bundlewrap~=4.17 bundlewrap ~=4.0, >=4.17.2
pycryptodome pycryptodome
PyNaCl PyNaCl
PyYAML PyYAML