43 Commits

Author SHA1 Message Date
d56a653e73 AccessControl: Add provisioning folder to the packaging process (#34398)
* AccessControl: Add provisioning folder to the packaging process
2021-05-20 09:41:39 +02:00
cc95754e0d Provisioning: Adds support for enabling app plugins (#25649)
Adds support for enabling app plugins using provisioning. 

Ref #11409

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2020-06-22 17:49:13 +02:00
5dc864b47f fixes invalid folder check
-f check if a file exists. -d checks if the dir exists
2019-02-11 11:36:34 +01:00
7ce18ec4f7 extract notifiers folder creation to new if statement 2019-02-11 11:30:41 +01:00
9c18aa8684 make sure to create provisioning/notifiers directory for deb and rpm packages 2019-02-07 16:10:39 +01:00
2e8c4699b0 build: internal metrics for packaging. 2018-11-15 14:42:09 +01:00
2e610cb256 dashboards as cfg: move dash/ds config files to /provisioning/* 2017-12-07 15:27:01 +01:00
50bc801f1c dashboards as cfg: copy dash/ds files if missing 2017-12-07 15:27:01 +01:00
361acd3fa1 dashboards as cfg: include cfg files in dist packages 2017-12-07 15:27:01 +01:00
b51476f18a Fix typo in init.d script 2017-10-20 13:31:52 -04:00
5d3c3a6889 packaging: changed how pid directory is created for systemd systems, #9133 2017-09-04 16:41:07 +02:00
c3cffeb10c packaging: fixed issue with pid file on systemd systems, fixes #9133 2017-09-04 10:43:04 +02:00
5dad324ab7 #8144 Only require root to start/stop grafana (#8145) 2017-04-18 13:49:04 +02:00
68e6700663 Add an After= DB ordering relation to systemd .service (#7903)
In systemd `After=` merely codes an ordering relation and does not start
other units.

Grafana needs to specify that it wants to start up _after_ either of the
supported DB services have started, _if they start_.

Enabling the database services, however, is out of scope for Grafana.
2017-03-22 16:49:35 +01:00
f602752bdc fix(packaging): fixed issue in deb package post install script that made it think upgrade was happening, fixes #7403 2017-01-31 10:56:04 +01:00
b191638f41 feat(packaging): Make config file not part of package to simplify upgrade, made commit always a short sha, changed RESTART_ON_UPGRADE to true by default, #7399, #7227 2017-01-30 08:08:37 +01:00
6afb456bef Update systemd unit's description to be more understandable
Signed-off-by: Christopher Meng <i@cicku.me>
2016-09-06 16:29:15 +02:00
51878aeca8 change start to restart also for systemctl
I've forgotten to update the systemctl start to restart in my first commit
2016-06-05 16:27:57 +02:00
1d2eb0f903 restart grafana after upgrade
The current script only tries to start the already running grafana process after an upgrade. This leads to errors due to changed js and css hashes while grafana is delivering the old ones. To load the new sources we need to restart grafana after an upgrade.
2016-06-05 16:19:53 +02:00
99db89067e fix(): reverted RESTART_ON_UPGRADE change 2016-05-17 08:34:34 +02:00
731c35540f packaging(): default RESTART_ON_UPGRADE to true, closes #4993 2016-05-12 07:29:33 +02:00
cdd341af64 feat(packaging): added Restart=on-failure to systemd service spec file 2016-01-13 13:57:22 +01:00
f83d5f4280 cleanup(influxdb_08): removed influxdb 0.8 data source as an built in official data source, moved it to an external plugin repo, https://github.com/grafana/datasource-plugin-influxdb-08, closes #3523 2015-12-15 11:21:00 +01:00
4ec6691ea9 Fix LimitNOFILE in Debian systemd unit 2015-10-23 15:12:52 +02:00
9e21a089d2 Fixing permission issues for new installations
The umask as 0027 will generates permissions like:
0640 - for files
0750 - for directories

This should solve the grafana.db being accesable by any user for new installations.
2015-08-16 18:43:27 +02:00
5302d3bb31 Added pidfile arg to systemd service spec, fixes #2360 2015-08-04 15:44:07 +02:00
8daec7bde2 fix(packaging): fixed issue with restart on upgrade in debian package, Fixes #2320 2015-07-15 14:57:52 +02:00
a958965e64 set mode 0640 and group grafana on /etc/grafana/grafana.ini 2015-07-08 22:13:38 +10:00
fcba62894b remove trailing exit 0 from deb init 2015-06-04 11:40:49 -07:00
77215182f7 fixing up init script exit codes 2015-06-04 11:01:04 -07:00
90a77bdf85 Fixed failure loop in init.d script when grafana will not start (due to permission issue or other), Fixes #1837 2015-04-22 08:47:53 +02:00
a4ef1e22d6 Updated docs 2015-04-13 07:55:07 +02:00
bdc4d14036 Updated postinstall scripts 2015-04-12 16:19:44 +02:00
ed82f6c681 Added upgrade step that moves sqlite3 database to new location, #1758 2015-04-12 15:58:08 +02:00
8accb8865a restart on upgrade default to false 2015-04-10 17:36:25 +02:00
d32c03ed11 Rpm working again, systemd working on centos 7 2015-04-10 16:20:01 +02:00
3e49609099 started work on new rpm package 2015-04-10 11:35:14 +02:00
c47f4bc97c systemd service is working on debian jessie 2015-04-10 11:26:03 +02:00
2020fedfdb Fixed issue with overriding default config values via command line 2015-04-10 10:58:32 +02:00
4c6d7630cd more work on refining config loading, and packaging 2015-04-09 17:18:04 +02:00
a991cda233 Began work on refactoring reading config values 2015-04-08 20:31:42 +02:00
9c2040aa9b More deb & rpm work, systemd testing 2015-04-08 16:58:05 +02:00
96ee1c17a3 Worked on new deb & rpm packaging and init.d scripts 2015-04-08 14:10:04 +02:00