Puppet Class: asdf

Defined in:
manifests/init.pp

Overview

Parameters:

  • path (Any) (defaults to: '/opt/asdf')
  • owner (Any) (defaults to: $facts['id'])
  • group (Any) (defaults to: $facts['gid'])
  • repo (Any) (defaults to: 'https://github.com/asdf-vm/asdf')


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'manifests/init.pp', line 5

class asdf (
  $path = '/opt/asdf',
  $owner = $facts['id'],
  $group = $facts['gid'],
  $repo = 'https://github.com/asdf-vm/asdf'
) {
  vcsrepo { $path:
    ensure   => latest,
    provider => git,
    source   => $repo,
    owner    => $owner,
    group    => $group
  }

  $packages = [
    'automake',
    'autoconf',
    'openssl',
    'libyaml',
    'readline',
    'libxslt',
    'libtool',
    'unixodbc'
  ]

  package { $packages:
    ensure   => latest,
    provider => brew,
    before   => Vcsrepo[$path]
  }
}