|
19 | 19 | archive { "/tmp/prometheus-${prometheus::server::version}.${prometheus::server::download_extension}":
|
20 | 20 | ensure => present,
|
21 | 21 | extract => true,
|
22 |
| - extract_path => '/opt', |
| 22 | + extract_path => $prometheus::basepath, |
23 | 23 | source => $prometheus::server::real_download_url,
|
24 | 24 | checksum_verify => false,
|
25 |
| - creates => "/opt/prometheus-${prometheus::server::version}.${prometheus::server::os}-${prometheus::server::real_arch}/prometheus", |
| 25 | + creates => "${prometheus::basepath}/prometheus-${prometheus::server::version}.${prometheus::server::os}-${prometheus::server::real_arch}/prometheus", |
26 | 26 | cleanup => true,
|
27 | 27 | extract_command => $prometheus::extract_command,
|
28 | 28 | }
|
29 | 29 | -> file {
|
30 |
| - "/opt/prometheus-${prometheus::server::version}.${prometheus::server::os}-${prometheus::server::real_arch}/prometheus": |
| 30 | + "${prometheus::basepath}/prometheus-${prometheus::server::version}.${prometheus::server::os}-${prometheus::server::real_arch}/prometheus": |
31 | 31 | owner => 'root',
|
32 | 32 | group => 0, # 0 instead of root because OS X uses "wheel".
|
33 | 33 | mode => '0555';
|
34 | 34 | "${prometheus::server::bin_dir}/prometheus":
|
35 | 35 | ensure => link,
|
36 | 36 | notify => $prometheus::server::notify_service,
|
37 |
| - target => "/opt/prometheus-${prometheus::server::version}.${prometheus::server::os}-${prometheus::server::real_arch}/prometheus"; |
| 37 | + target => "${prometheus::basepath}/prometheus-${prometheus::server::version}.${prometheus::server::os}-${prometheus::server::real_arch}/prometheus"; |
38 | 38 | "${prometheus::server::bin_dir}/promtool":
|
39 | 39 | ensure => link,
|
40 |
| - target => "/opt/prometheus-${prometheus::server::version}.${prometheus::server::os}-${prometheus::server::real_arch}/promtool"; |
| 40 | + target => "${prometheus::basepath}/prometheus-${prometheus::server::version}.${prometheus::server::os}-${prometheus::server::real_arch}/promtool"; |
41 | 41 | $prometheus::server::shared_dir:
|
42 | 42 | ensure => directory,
|
43 | 43 | owner => $prometheus::server::user,
|
|
46 | 46 | "${prometheus::server::shared_dir}/consoles":
|
47 | 47 | ensure => link,
|
48 | 48 | notify => $prometheus::server::notify_service,
|
49 |
| - target => "/opt/prometheus-${prometheus::server::version}.${prometheus::server::os}-${prometheus::server::real_arch}/consoles"; |
| 49 | + target => "${prometheus::basepath}/prometheus-${prometheus::server::version}.${prometheus::server::os}-${prometheus::server::real_arch}/consoles"; |
50 | 50 | "${prometheus::server::shared_dir}/console_libraries":
|
51 | 51 | ensure => link,
|
52 | 52 | notify => $prometheus::server::notify_service,
|
53 |
| - target => "/opt/prometheus-${prometheus::server::version}.${prometheus::server::os}-${prometheus::server::real_arch}/console_libraries"; |
| 53 | + target => "${prometheus::basepath}/prometheus-${prometheus::server::version}.${prometheus::server::os}-${prometheus::server::real_arch}/console_libraries"; |
54 | 54 | }
|
55 | 55 | }
|
56 | 56 | 'package': {
|
|
0 commit comments