Skip to content

Commit 07d22c2

Browse files
authored
Merge pull request #19 from syseleven/custom-source-url
allow custom source-url
2 parents 7a3789b + b16026a commit 07d22c2

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

manifests/init.pp

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,18 @@
111111
# }
112112
#
113113
class promtail (
114-
Enum['running', 'stopped'] $service_ensure,
115-
Hash $clients_config_hash,
116-
Hash $positions_config_hash,
117-
Hash $scrape_configs_hash,
118-
Stdlib::Absolutepath $bin_dir,
119-
String[1] $checksum,
120-
String[1] $version,
121-
Optional[Hash] $server_config_hash = undef,
122-
Optional[Hash] $target_config_hash = undef,
123-
Optional[Stdlib::Absolutepath] $password_file_path = undef,
114+
Enum['running', 'stopped'] $service_ensure,
115+
Hash $clients_config_hash,
116+
Hash $positions_config_hash,
117+
Hash $scrape_configs_hash,
118+
Stdlib::Absolutepath $bin_dir,
119+
String[1] $checksum,
120+
String[1] $version,
121+
Optional[Hash] $server_config_hash = undef,
122+
Optional[Hash] $target_config_hash = undef,
123+
Optional[Stdlib::Absolutepath] $password_file_path = undef,
124124
Optional[Sensitive[String[1]]] $password_file_content = undef,
125+
Stdlib::HTTPUrl $source_url = 'https://github.com/grafana/loki/releases/download',
125126
){
126127
Class['promtail::install']
127128
-> Class['promtail::config']

manifests/install.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
archive { "${binary_path}.gz":
3535
ensure => present,
36-
source => "https://github.com/grafana/loki/releases/download/${promtail::version}/${release_file_name}.${archive_type}",
36+
source => "${promtail::source_url}/${promtail::version}/${release_file_name}.${archive_type}",
3737
extract => true,
3838
extract_path => $version_dir,
3939
creates => $binary_path,

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "grafana-promtail",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"author": "grafana",
55
"summary": "Deploy and configure Grafana's Promtail",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)