Puppet Class: randrust::install
- Defined in:
-
manifests/install.pp
Summary
A short summary of the purpose of this class
This class handles the randrust package.
Overview
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'manifests/install.pp', line 7
class randrust::install {
if $randrust::package_manage {
$distro = downcase($facts['os']['name'])
if ! ($distro in ['debian', 'ubuntu']) {
fail("${distro} is not supported. Only ubuntu and debian are currently")
}
apt::source { 'jarv_test':
location => "https://packagecloud.io/jarv/test/${distro}/",
repos => 'main',
key => {
id => 'CB3558958B771316670B2C85BD07CDB5921FCE51',
source => 'https://packagecloud.io/jarv/test/gpgkey',
},
include => { 'deb' => true },
} -> package { $randrust::package_name:
ensure => $randrust::package_ensure,
require => Exec['apt_update'],
}
Apt::Source['jarv_test'] ~> Exec['apt_update']
}
}
|