git_annex.pp 588 Bytes
Newer Older
1
2
# Manage the git-annex package
class tails::git_annex (
3
4
  Enum['present', 'absent'] $ensure         = present,
  Variant[Boolean, String] $with_recommends = 'default',
5
6
7
8
9
10
) {

  $install_options = $with_recommends ? {
    false   => [ '--no-install-recommends' ],
    default => [],
  }
intrigeri's avatar
intrigeri committed
11

12
  package { 'git-annex':
13
    ensure          => $ensure,
14
15
16
    install_options => $install_options,
  }

17
18
19
20
21
22
23
24
  file { '/usr/local/bin/pull-git-annex':
    ensure => $ensure,
    source => 'puppet:///modules/tails/git-annex/pull-git-annex',
    owner  => root,
    group  => root,
    mode   => '0755',
  }

25
}