Skip to content

Puppet BareOS Storage Daemon config

bareos/storage/bareos.yaml

---

classes:
  - bareos::storage::storage

bareos::storage::storage::allow_bandwidth_bursting: true
bareos::storage::storage::collect_device_statistics: true
bareos::storage::storage::collect_job_statistics: true
bareos::storage::storage::maximum_concurrent_jobs: 16
bareos::storage::storage::name_storage: $STORAGEDAEMON
bareos::storage::storage::tls_enable: true
bareos::storage::storage::tls_ca_certificate_file: /etc/bareos/ssl/ca.crt
bareos::storage::storage::tls_certificate: /etc/bareos/ssl/%{::fqdn}.crt
bareos::storage::storage::tls_key: /etc/bareos/ssl/%{::fqdn}.key
bareos::storage::storage::tls_verify_peer: false

resources:
  bareos::storage::messages:
    Default:
      director:
        - '$DIRECTORDAEMON = all'
      append:
        - '"/var/log/bareos/storage.log" = all, !skipped'
  bareos::storage::director:
    $DIRECTORDAEMON:
      tls_enable: true
      tls_ca_certificate_file: /etc/bareos/ssl/ca.crt
      tls_certificate: /etc/bareos/ssl/%{::fqdn}.crt
      tls_key: /etc/bareos/ssl/%{::fqdn}.key
      tls_allowed_cn:
        - $STORAGEDAEMON
  bareos::storage::device:
    RBD01: &RBD
      media_type: RadosFile
      archive_device: "Rados Device"
      device_options: "conffile=/etc/ceph/ceph.conf,poolname=bareos,username=client.bareos,striped,stripe_count=512"
      device_type: rados
      label_media: true
      always_open: false
      random_access: true
      automatic_mount: true
      removable_media: false
      maximum_concurrent_jobs: 16
    RBD02:
      <<: *RBD
    RBD03:
      <<: *RBD
    RBD04:
      <<: *RBD
    RBD05:
      <<: *RBD

bareos/storage/ssl.yaml

---

resources:
  file:
    /etc/bareos/ssl/:
      ensure: directory
      owner: bareos
      group: bareos
    /etc/bareos/ssl/ca.crt:
      owner: bareos
      group: bareos
      content: $CA
    /etc/bareos/ssl/%{::fqdn}.crt:
      owner: bareos
      group: bareos
      content: $OWN_CRT
    /etc/bareos/ssl/%{::fqdn}.key:
      owner: bareos
      group: bareos
      content: $OWN_KEY

Last update: April 13, 2020

Comments