-
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?
Conversation
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.
Is there a public repo with packages now or is this to support internal packaging?
Optional[Sensitive[String[1]]] $password_file_content = undef, | ||
Stdlib::HTTPUrl $source_url = 'https://github.com/grafana/loki/releases/download', | ||
Enum['package', 'archive'] $install_method = 'archive', | ||
Enum['installed', 'absent'] $package_ensure = 'installed', |
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.
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 comment
The 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 comment
The 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.
See block #9-13 in this file
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.
It seems to me that it would make sense then to add a before
param to the unit file then...
@bastelfreak just checking in on the couple of comments above |
|
if $promtail::install_method == 'archive' { | ||
systemd::unit_file { 'promtail.service': | ||
source => 'puppet:///modules/promtail/promtail.service', | ||
notify => Service['promtail'], | ||
} | ||
} |
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.
if $promtail::install_method == 'archive' { | |
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', | |
before => Service['promtail'], | |
notify => Service['promtail'], | |
} | |
} |
No description provided.