Version information
This module has been deprecated by its author since Feb 16th 2022.
Start using this module
Documentation
Amanda module for Puppet
Description
Provides Amanda Network Backup server and client configuration through Puppet
Usage
The amanda module allows specifying parameterized classes that will do most of the heavy lifting in a single definition (relying on sane defaults), or for more custom configuration the utility defines can be used directly. What follows is a minimal-effort configuration that trusts the module to figure out the details.
node 'backup.cat.pdx.edu' {
class { 'amanda::server':
configs => [ 'daily', 'archive' ],
configs_source => 'modules/data/amanda',
}
}
node 'client.cat.pdx.edu' {
class { 'amanda::client':
server => 'backup.cat.pdx.edu',
}
}
Of note is the configs_source
parameter. While the amanda module will
install and configure server and client machines, it does not yet attempt to build
amanda configs using puppet code. Rather, that legwork is still left up to the
administrator, and the module will only ensure that the files which comprise
the config are present on the server.
Additional parameters are available for both the amanda::server
and
amanda::client
classes which are not documented here. At present the only
way to look up how to use them is to read the source.
How Configs Work
Use the following Puppet DSL code to ensure the "daily" and "archive" configs are created on an amanda backup server.
node 'backup.cat.pdx.edu' {
file { '/etc/amanda':
ensure => directory;
}
amanda::config { 'daily':
ensure => present,
configs_source => 'modules/data/amanda',
configs_directory => '/etc/amanda',
}
amanda::config { 'archive':
ensure => present,
configs_source => 'modules/data/amanda',
configs_directory => '/etc/amanda',
}
}
Then place your config files in the "files" directory of the module specified
with the configs_source
parameter. For the code above, files that make up
the "archive" and "daily" amanda configs should be placed in the data
module
as per this example:
data
|-- files
| `-- amanda
| |-- daily
| | |-- amanda.conf
| | |-- chg-multi.conf
| | |-- disklist
| | `-- label-templates
| | |-- 3hole.ps
| | |-- 8.5x11.ps
| | |-- DIN-A4.ps
| | |-- DLT-A4.ps
| | |-- DLT.ps
| | |-- EXB-8500.ps
| | |-- HP-DAT.ps
| | `-- tapetypes.conf
| `-- archive
| |-- amanda.conf
| |-- chg-scsi.conf
| |-- disklist
| `-- dumptypes.conf
|-- LICENSE
`-- README
The contents of the config
directory ("daily" or "archive") will be synced
as file resources to the location specified with the configs_directory
specified in the amanda::config
resource. For the example above, the files
will be synced to the agent system as:
/
|-- etc
| |-- amanda
| | |-- daily
. | | |-- amanda.conf
. . | |-- chg-multi.conf
. . | |-- disklist
. | `-- label-templates
| |-- 3hole.ps
| |-- 8.5x11.ps
| |-- DIN-A4.ps
| |-- DLT-A4.ps
| |-- DLT.ps
| |-- EXB-8500.ps
| |-- HP-DAT.ps
| `-- tapetypes.conf
`-- archive
|-- amanda.conf
|-- chg-scsi.conf
|-- disklist
`-- dumptypes.conf
Additional Types
Besides the primary classes amanda::server
and amanda::client
, three utility
defines are included in the module.
Amanda::Amandahosts
The amanda::amandahosts
type manages the .amandahosts file, which controls
access to amanda services. The important parameter to this resource is
content
, and the user must specify the full access line to include. For
example,
amanda::amandahosts { 'replicator-amdump':
content => "replicator.cat.pdx.edu backup amdump",
}
Amanda::Config
The amanda::config
type synchronizes a directory of files in a given module to
a client. A more detailed example is given in the preceding section.
amanda::config { 'daily':
ensure => present,
configs_source => 'modules/data/amanda',
configs_directory => '/etc/amanda',
}
Amanda::Ssh_authorized_key
The amanda::ssh_authorized_key
type is a convenience define used to install
ssh authentication on an amanda client. The important parameter for this type
is key
.
amanda::ssh_authorized_key { 'replicator':
key => hiera('pubkey/backup@replicator'),
}
Amanda::Disklist::Dle
The amanda::disklist::dle
type is used to add/remove disk list entries
from the Amanda disklist(5) file, which is used by Amanda to determine which
disks will be backed up.
Requirements:
- Puppet
storeconfigs
must be enabled amanda::config
must be used to synchronize configuration files with themanage_dle
parameter set totrue
, i.e.manage_dle => true
. This must be set for eachamanda::config
if more than one has been configured.
amanda::disklist::dle { '/etc':
configs => 'daily',
dumptype => 'dumptype',
}
amanda::disklist::dle { '/var':
configs => [ 'daily', 'weekly' ],
dumptype => 'dumptype',
}
Known Issues
-
The module does not include tests
-
The module does not allow overriding of the client/server package name(s)
Contributors
- Darin Perusich darin@darins.net
- Jon Harker jesusaurus@cat.pdx.edu
- Reid Vandewiele marut@cat.pdx.edu
- William Van Hevelingen blkperl@cat.pdx.edu
2013-10-02 Release 1.0.2
Summary:
Revert set type unlisted in xinetd config
This change was not ready to be merged
Backwards-incompatible changes:
- Set type unlisted in xinetd config
2013-10-02 Release 1.0.1
Summary:
Fix amanda::disklist::dle export bug
Bugs:
- Fix amanda::disklist::dle export bug
- Set proper ownership on disklist file
- Set type unlisted in xinetd config
2013-09-29 Release 1.0.0
Summary:
Add disklist support for Amanda
Backwards-incompatible changes:
- Changed dependency on ripienaar/concat to puppetlabs/concat
- Added dependency on stdlib
0.1.7 - pdxcat/amanda - 2013/08/01
547a444 Update dependencies to use puppetlabs/xinetd 18d3e8a Contributors list in readme now in list format. c1cb18c Made Readme nice looking for GitHub formatting 755c742 add amanda_files which is similar to amanda_directories, it contains files that need to be chowned to the amanda user. 6aad38c Add /opt/csw/var/amanda/gnutar-lists to list of directories to chown for Solaris
0.1.6 - pdxcat/amanda - 2013/05/19
c6074ab adding arch test to the amandad executable as well since the /usr/sbin/amandad symlink doesn't exist on CentOS 5 b9eddba Set the correct location of the amanda binaries on CentOS and added an architecture check on it as well since the binaries are in different pl 92c7906 (#6) Fix server package not defined on rhel
0.1.5 - pdxcat/amanda - 2013/03/19
e9c5e3c Merge pull request #4 from cdelston/master 4cee13a Fix whitespace in 10fdface15c549430463 10fdfac Ignore .svn directory when recursing remote config ac3d6b1 Add rhel6 support to amanda module 37b3da1 Add redhat params and support
0.1.4 - pdxcat/amanda - 2012/05/19
*** Update CHANGELOG for 0.1.4 patch bbaabd4 Use built-in file features for config define
0.1.3 - pdxcat/amanda - 2012/05/13
341a7dg Update CHeNGELOG for 0.1.3 patch a1230bf Add smoke test "demo", which includes a config 1060449 Fix logic bug in amanda::config 231a5e9 Add smoke tests
0.1.2 - pdxcat/amanda - 2012/05/13
cf93c7e Udate CHANGELOG for 0.1.2 patch 4e3437a Fix style violations and README syntax 8365d8b Fix bad default logic for configs_directory param
0.1.1 - pdxcat/amanda - 2012/05/11
4cf6223 Update CHANGELOG for 0.1.1 release cb217bf Update README file 9c96e28 Clean up puppet-lint style errors
0.1.0 - pdxcat/amanda - 2012/05/09
6146b82 Update CHANGELOG for 0.1.0 release 229ce32 Switch Debian params from zmanda packages to dist 0883ee6 Massively refactor module, redo how configs work
0.0.3 - pdxcat/amanda - 2012/05/02
1daec40 Update CHANGELOG for 0.0.3 release 9349442 Update xinetd resources (changed param name) e82cdbc Add version number of released concat module
0.0.2 - pdxcat/amanda - 2012/04/26
0001044 Reverting "version number as date" fffdec8 The log directory should be created on debian 13402ed Update Modulefile for release to moduleforge 9f4e5b2 Switch from blastwave provider to pkgutil e6335f6 Merge pull request #3 from deadpoint/master 285a26f Add support for SuSE distributions cfe129e Fix dependency problem with xinetd client/server ebe6048 Merge pull request #2 from blkperl/test_blkperl_release2 5c001f6 Fixing typo in LICENSE file 44a275d Merge pull request #1 from blkperl/test_blkperl_release 28b003f Adding an Apache LICENSE file and modulefile 08f79bf Updating group params for freebsd < 8.2 07f9117 Fixing amanda package "before" param f07500a Adding user dependency to file resources 5067a01 Adding user shell definition 9ae41b5 Tweaking config so concat works on solaris b160b6e Seperating out ssh_authorized_key into define 2bd73f2 Adding a boolean xinetd parameter 8e158df Fixing -auth tyop/bug 49b819d Cleaning up the concact stuff in amanda module 2086878 Adding concat management of .amandahosts 2924c8e Adding amanda index xinetd entries
0.0.1 - pdxcat/amanda - 2011/12/15
40b896f Adding the amanda user on ubuntu to tape group 6a8a494 Fixing $genericpackage bug 6db6cdb README update, since it needed it 1d549f5 Sanitizing defaults b9f5f40 Adding example configs 4404d82 Simplifying amanda_config_files function 919681b fixing array index bug 486306d Bug fixes 1f49e18 Use files/server/ as root instead of files/ a8b96cf Updating README f341eb7 Updating readme fa085e9 diversifying amanda_config_files function fa1b634 modifying treatment of complexity in amanda module 3126aa9 Adding amanda module from production to theverse
Dependencies
- puppetlabs/concat (>= 1.0.0)
- puppetlabs/xinetd (>= 1.2.0)
- puppetlabs/stdlib (>= 2.2.1)
Puppet Amanda Module Copyright (C) 2012 Computer Action Team The Computer Action Team can be contacted at: support@cat.pdx.edu 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.