Creates a systemd service for Loki
:create
Name | Type | Default | Description | Allowed Values |
---|---|---|---|---|
cookbook |
String | loki |
Allows for overriding the default loki.service.erb cookbook location |
|
install_directory |
String | /etc/loki/bin/ |
Installs latest Loki from Github:
loki_install 'loki'
loki_service 'loki'
service 'loki' do
action [:enable, :start]
subscribes :restart, ['template[//etc/loki/config/config-loki.yml]'], :delayed
end