Skip to content

Commit 9442272

Browse files
authored
Merge pull request #917 from Boran/patch-1
Allow mysqltuner to be downloaded via a proxy
2 parents e305bcd + e5e78a1 commit 9442272

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,9 +626,9 @@ Ensures that the resource exists. Valid values are `present`, `absent`. Defaults
626626

627627
The version to install from the major/MySQLTuner-perl github repository. Must be a valid tag. Defaults to 'v1.3.0'.
628628

629-
##### `source`
629+
##### `environment`
630630

631-
Specifies the source. If not specified, defaults to `https://github.com/major/MySQLTuner-perl/raw/${version}/mysqltuner.pl`
631+
Environment variables acive during download, e.g. to download via proxies: environment => 'https_proxy=http://proxy.example.com:80'
632632

633633
#### mysql::bindings
634634

manifests/server/mysqltuner.pp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
$ensure = 'present',
44
$version = 'v1.3.0',
55
$source = undef,
6+
$environment = undef, # environment for staging::file
67
) {
78

89
if $source {
@@ -36,7 +37,8 @@
3637
}
3738

3839
staging::file { "mysqltuner-${_version}":
39-
source => $_source,
40+
source => $_source,
41+
environment => $environment,
4042
}
4143
file { '/usr/local/bin/mysqltuner':
4244
ensure => $ensure,

0 commit comments

Comments
 (0)