15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'manifests/init.pp', line 15
class githubreleases (
String $release = 'latest',
String $asset_filepattern = '.*',
String $asset_contenttype = '.*',
Boolean $asset = false,
Boolean $asset_fallback = false,
Boolean $use_zip = false,
Boolean $is_tag = false,
Variant[Boolean, String] $use_auth = false,
Variant[Boolean, String] $use_oauth = false,
Optional[String] $author = undef,
Optional[String] $repository = undef,
Optional[String] $username = '',
Optional[String] $password = ''
)
{
$githubreleases_download = lookup('githubreleases_download', { merge => hash, default_value => undef })
if ($githubreleases_download) {
create_resources('githubreleases_download', $githubreleases_download)
}
}
|