Puppet Class: octopass::repo

Defined in:
manifests/repo.pp

Summary

Setup the repository for octopass

Overview



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
36
37
38
# File 'manifests/repo.pp', line 5

class octopass::repo {

  case $facts['os']['family'] {
    'RedHat': {
      yumrepo {
        default:
          ensure          => $octopass::repo_ensure,
          repo_gpgcheck   => 1,
          gpgcheck        => 0,
          enabled         => 1,
          gpgkey          => $octopass::repo_gpgkey_url,
          sslverify       => 1,
          sslcacert       => '/etc/pki/tls/certs/ca-bundle.crt',
          metadata_expire => 300;

        'octopass':
          descr   => 'linyows_octopass',
          baseurl => 'https://packagecloud.io/linyows/octopass/el/7/$basearch';

        'octopass-source':
          descr   => 'linyows_octopass-source',
          baseurl => 'https://packagecloud.io/linyows/octopass/el/7/SRPMS';
      }
    }
    'Debian': {
      include ::apt
      require ::apt::update
      include octopass::repo::apt
    }
    default: {
      fail("Unsupported os: ${facts['os']['name']}")
    }
  }
}