Puppet Class: modern_shell_tools::install::jq
- Defined in:
-
manifests/install/jq.pp
Summary
A commandline JSON processor
Overview
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'manifests/install/jq.pp', line 13
class modern_shell_tools::install::jq (
String[1] $build = 'linux64',
String[1] $version = '1.6',
String[1] $archive_name = "jq-${build}",
Stdlib::Absolutepath $install_path = "/opt/mst/jq-${version}",
Stdlib::Absolutepath $bin_path = '/usr/local/sbin',
Stdlib::Absolutepath $create_path = "${install_path}/${archive_name}",
) {
include modern_shell_tools::install
file { $install_path:
ensure => directory,
}
-> file { "${install_path}/${archive_name}":
ensure => file,
source => "https://github.com/stedolan/jq/releases/download/jq-${version}/${archive_name}",
mode => '0755',
}
-> file { "${bin_path}/jq":
ensure => link,
target => $create_path,
}
}
|