Open
Description
π» Brief Description
grafana_config_security
propertyadmin_user
is not set in grafana.ini.- Additionally,
admin_password
is not set even if it is rendered out in grafana.ini.
π₯ Cookbook version
Latest as of writing this: 10.2.0
π©βπ³ Chef-Infra Version
cinc-client --version
Cinc Client: 16.18.0
π© Platform details
Standard Ubuntu 20.04 in test kitchen
Steps To Reproduce
# Resource declaration
grafana_config_security 'grafana' do
admin_user 'test_admin'
admin_password 'test_password'
secret_key 'abcdefghijklmno'
cookie_secure true
cookie_samesite 'lax'
end
; In test kitchen /etc/grafana/grafana.ini
[security]
admin_password = changeme
cookie_samesite = lax
cookie_secure = true
secret_key = abcdefghijklmno
π Expected behavior
/etc/grafana/grafana.ini
should have line:admin_user = test_admin
- When logging into grafana, should be able to login with
test_admin:test_password
β Additional context
- admin_user
- Unsure where it could be getting omitted. For some reason it does not show up at all.
- admin_password:
- According to official docs, this is only set once (probably at first service start)
- And the service does start when apt install.
- Unsure how this can be fixed. Perhaps an apt option to not start the service
- Or use
grafana-cli admin reset-admin-password
command conditionally (https://grafana.com/docs/grafana/v9.3/cli/#reset-admin-password)
Metadata
Assignees
Labels
No labels
Activity