- Overview
- Module Description
- Usage - Configuration options and additional functionality
- Reference
- Limitations
- Development
- Copyright
This module installs and configures the r1soft server backup agent.
This module installs the r1soft server backup agent. It will install the r1soft yum repository, the kernel-devel pacakge, the cdp kernel module, install keys for r1soft backup servers, and start the r1soft agent.
To install the r1soft agent with keys for 198.51.100.2 and 198.51.100.3, and ensuring a key is absent for 198.51.100.4:
class {'::r1soft::agent':
keys => {'198.51.100.2' => {key => "-----BEGIN PUBLIC KEY-----\nDEADBEEF\n-----END PUBLIC KEY-----",},
'198.51.100.3' => {key => "-----BEGIN PUBLIC KEY-----\nCAFEFOOD\n-----END PUBLIC KEY-----",},
'198.51.100.4' => {ensure => 'absent'}}
}
It looks much better and is much easier to manage in hiera:
# in hiera.yaml
r1soft::agent::keys:
198.51.100.2:
key: |
-----BEGIN PUBLIC KEY-----
DEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEF
FBADBEEFFBADBEEFFBADBEEFFBADBEEFFBADBEEF
BADDCAFEBADDCAFEBADDCAFEBADDCAFEBADDCAFE
-----END PUBLIC KEY-----
198.51.100.3:
key: |
-----BEGIN PUBLIC KEY-----
CAFEFOODCAFEFOODCAFEFOODCAFEFOODCAFEFOOD
B105F00DB105F00DB105F00DB105F00DB105F00D
C00010FFC00010FFC00010FFC00010FFC00010FF
-----END PUBLIC KEY-----
198.51.100.4:
ensure: absent
# in your manifest.pp
class {'::r1soft::agent':}
- r1soft::repo: Installs the repository for r1soft
- r1soft::agent::kernel_package: Installs the kernel-devel package
- r1soft::agent::install: Installs the r1soft package
- r1soft::agent::service: Configures and starts the r1soft service
- r1soft::agent::keys: Manages keys for r1soft
Specify if you want the module to install the r1soft repository. Default value: true
Specify the baseurl for the yum repo. Default value: 'http://repo.r1soft.com/yum/stable/$basearch/'
Specify the enable value for the yum and apt repo. Default value: true
Specify the gpgcheck value for the yum repo. Default value: false (because r1soft does not sign their RPMS)
Specify the version of r1soft to install. Default value: 'present'
Specify the name of the r1soft package. Default value: 'serverbackup-agent'
Specify if you want the module to install the kernel-devel package which is needed by r1soft. Default value: true
Specify the kernel-devel package name. Default value: kernel-devel-${::kernelrelease}
Specify if you want to the module to manage the r1soft service. Default value: true
Specify the name of the r1soft service. Default value: 'cdp-agent'
Specify the ensure value of the r1soft service. Default value: 'running'
Specify the enable value of the r1soft service. Default value: true
Specify a list of keys to place on the r1soft agent server. Default value: empty
Specify if you want to purge all keys not managed by puppet: Default value: false
- r1soft_agent_version: r1soft version and build number
- r1soft_agent_version_short: r1soft version number
- r1soft_agent_version_long: r1soft version number, build number, and build date
The module works with currently supported versions of CentOS and RHEL, It has been tested on CentOS. It can probably work on Oracle Linux and Scientific Linux with minimal work.
Install necessary gems:
bundle install --path vendor/bundle
Check syntax of all puppet manifests, erb templates, and ruby files:
bundle exec rake validate
Run puppetlint on all puppet files:
bundle exec rake lint
Run spec tests in a clean fixtures directory
bundle exec rake spec
Run acceptance tests:
BEAKER_setfile=spec/acceptance/nodesets/centos-67-x64.yml bundle exec rake acceptance
Copyright 2015 Nexcess
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.