-
Notifications
You must be signed in to change notification settings - Fork 18
Support Windows #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Support Windows #33
Changes from 5 commits
628a3dc
7c3684e
8144493
d9353d4
c2d1e06
ac83b6f
ebc2114
ec25d16
a908547
7b06435
810743a
c20d9f6
7cd029a
02f5cb8
3eaf2a6
bc0a286
1161f52
633a89b
b977bad
35f1024
5b73154
cf50843
1ca3a88
114ac66
f890bce
79bfb86
924d350
e647edb
e5158a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,12 @@ | |
class promtail::service { | ||
case $facts['kernel'] { | ||
'Linux': { | ||
include systemd::systemctl::daemon_reload | ||
systemd::unit_file { 'promtail.service': | ||
ensure => present, | ||
source => 'puppet:///modules/promtail/promtail.service', | ||
notify => Service['promtail'], | ||
} | ||
|
||
service { 'promtail': | ||
ensure => $promtail::service_ensure, | ||
enable => $promtail::service_enable, | ||
require => Systemd::Unit_file['promtail.service'], | ||
enable => $promtail::service_enable, | ||
active => $promtail::service_ensure == 'running' | ||
|
||
} | ||
} | ||
default: { fail("${facts['kernel']} is not supported") } | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this resource is gone in latest releases of the systemd module. The module now requires puppet 6.1 or newer because that version contains the automatic systemctl daemon-reload und changed/new unit files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This module already states 6.1 as the bottom end so I think removing this would make sense.