summaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: f42b2d65f7b4ea76672b4c07edf860cba59e2b1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class hydra(
  $folder = hiera('hydra::folder', '/usr/local/hydra')
) {
  vcsrepo { "$folder":
    ensure   => present,
    provider => git,
    source   => 'git://git.sarava.org',
    revision => '9d0a6147bdb356f47c4d89dd6c0e099cb2bbe88c',
    owner    => 'root',
    group    => 'root',
  }

  file { [ "/usr/local/bin/hydra", "/usr/local/bin/hydractl",
           "/usr/local/bin/hydras" ]:
    ensure  => link,
    target  => "$folder/hydra",
    require => Vcsrepo["$hydra_dir"],
  }
}