-
Notifications
You must be signed in to change notification settings - Fork 18
allow promtail installation via package #41
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?
Changes from all commits
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,16 @@ | |||||||||||||||||||||||||||
class promtail::service { | ||||||||||||||||||||||||||||
case $facts['kernel'] { | ||||||||||||||||||||||||||||
'Linux': { | ||||||||||||||||||||||||||||
systemd::unit_file { 'promtail.service': | ||||||||||||||||||||||||||||
source => 'puppet:///modules/promtail/promtail.service', | ||||||||||||||||||||||||||||
notify => Service['promtail'], | ||||||||||||||||||||||||||||
if $promtail::install_method == 'archive' { | ||||||||||||||||||||||||||||
systemd::unit_file { 'promtail.service': | ||||||||||||||||||||||||||||
source => 'puppet:///modules/promtail/promtail.service', | ||||||||||||||||||||||||||||
notify => Service['promtail'], | ||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||
Comment on lines
+9
to
14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
service { 'promtail': | ||||||||||||||||||||||||||||
ensure => $promtail::service_ensure, | ||||||||||||||||||||||||||||
enable => $promtail::service_enable, | ||||||||||||||||||||||||||||
require => Systemd::Unit_file['promtail.service'], | ||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this line being removed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you use a package the systemd unit file would be managed by the package and not as a resource in Puppet. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems to me that it would make sense then to add a |
||||||||||||||||||||||||||||
ensure => $promtail::service_ensure, | ||||||||||||||||||||||||||||
enable => $promtail::service_enable, | ||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||
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.
Please also allow
latest
or simply any valid string which would allow pinning versions.