Puppet Class: backblazeb2::package

Defined in:
manifests/package.pp

Overview

Class: backblazeb2::package



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'manifests/package.pp', line 4

class backblazeb2::package {
  if $facts['os']['family'] == 'FreeBSD' {
    package { 'b2':
      ensure => latest,
    }
  }
  elsif $facts['os']['family'] == 'Linux' {
    package { 'b2':
      ensure   => latest,
      provider => 'pip',
    }
    package { 'python-pip':
      ensure => latest,
      before => Package['b2'],
    }
  }
}