Puppet Class: backblazeb2

Defined in:
manifests/init.pp

Overview

Class: backblazeb2 Backblaze Module for FreeBSD



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

class backblazeb2 {
  require backblazeb2::package
  include backblazeb2::cron
  user { 'b2':
    ensure  => present,
    comment => 'b2 Backblaze Backup User',
    home    => '/home/b2',
    shell   => '/bin/sh',
    groups  => ['b2'],
    require => [Group['b2']],
  }

  group { 'b2':
    ensure => present,
  }

  file { '/home/b2':
    ensure => directory,
    owner  => 'b2',
    group  => 'b2',
    mode   => '0644',
  }
  file { '/var/log/b2':
    ensure => directory,
    owner  => 'b2',
    group  => 'b2',
    mode   => '0644',
  }
}