Puppet Class: hashicorp

Defined in:
manifests/init.pp

Overview

ex: syntax=puppet si sw=2 ts=2 et

Parameters:

  • install_dir (Any) (defaults to: undef)
  • download_cache_dir (Any) (defaults to: undef)


2
3
4
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
# File 'manifests/init.pp', line 2

class hashicorp (
  $install_dir        = undef,
  $download_cache_dir = undef,
) {
  include '::hashicorp::defaults'
  include '::gnupg'

  gnupg_key { 'hashicorp':
    ensure     => present,
    key_id     => '51852D87348FFC4C',
    user       => 'root',
    key_source => 'https://keybase.io/hashicorp/pgp_keys.asc?fingerprint=91a6e7f85d05c65630bef18951852d87348ffc4c',
    key_type   => public
  }

  file { $download_cache_dir:
    ensure => directory,
    owner  => 'root',
    group  => 'root',
    mode   => '0755',
  }

  file { '/usr/local/bin/hashicorp-download.sh':
    ensure => present,
    owner  => 'root',
    group  => 'root',
    mode   => '0744',
    source => 'puppet:///modules/hashicorp/hashicorp-download.sh',
  }
}