Version information
This version is compatible with:
- Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x
- Puppet >= 5.5.8 < 7.0.0
Start using this module
Add this module to your Puppetfile:
mod 'puppet-amanda', '4.0.0'
Learn more about managing modules with a PuppetfileDocumentation
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.
If you need to create configs from templates or other sources, then by setting
manage_configs_source
to false
will disable extraction via the mechanism
below, you are then free to assign puppet file resources as appropriate to
create your configs.
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
Changelog
All notable changes to this project will be documented in this file. Each new release typically also includes the latest modulesync defaults. These should not affect the functionality of the module.
v4.0.0 (2020-11-07)
Breaking changes:
- modulesync 2.7.0 and drop puppet 4 #79 (bastelfreak)
Fixed bugs:
- Allow puppetlabs/concat 6.x, puppetlabs/stdlib 6.x #81 (dhoppe)
- Fix stray 'directory_mode' reference left by bbaabd4 #78 (cliff-svt)
Merged pull requests:
- modulesync 3.0.0 & puppet-lint updates #89 (bastelfreak)
- Remove duplicate CONTRIBUTING.md file #85 (dhoppe)
- Fix URL of badges at README.md #84 (dhoppe)
- Adding parameters to puppet-amanda/manifests/params.pp file for Redhat OSfamily. #80 (datarame)
- replace validate_* with assert_type in disklist.pp #77 (bastelfreak)
v3.2.1 (2018-10-14)
Fixed bugs:
Merged pull requests:
- modulesync 2.1.0 and allow puppet 6.x #72 (bastelfreak)
- allow puppetlabs/concat 5.x #71 (bastelfreak)
- allow puppetlabs/stdlib 5.x #69 (bastelfreak)
v3.2.0 (2018-06-16)
Implemented enhancements:
Merged pull requests:
- Remove docker nodesets #62 (bastelfreak)
v3.1.0 (2018-05-01)
Implemented enhancements:
- amanda::config via puppet scheme url now optional #54 (mcgarrigle)
Merged pull requests:
- Add amanda::server parameters #58 (mcgarrigle)
v3.0.1 (2018-03-29)
Merged pull requests:
- Bump puppet dependency to minimum supported version 4.10.0 #56 (bastelfreak)
v3.0.0 (2017-10-15)
Merged pull requests:
- adjust puppet version boundary for puppet5, drop 3 #50 (bastelfreak)
- Fix github license detection #47 (alexjfisher)
v2.1.0 (2017-02-10)
This is the last release with Puppet3 support!
- Fix several markdown issues
- Add missing badges
- Set min version_requirement for Puppet + deps
2016-08-18 Release 2.0.0
- First release in the Vox Pupuli namespace
- Drop of ruby1.8.7 Support
- Set type UNLISTED for amandaidx and amidxtape in xinetd
- Correctly handle /tmp/amanda
- Add option for manage_dle to server
- Add option to enable ssh host key imports
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
2013-08-01 Release 0.1.7
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
2013-05-19 Release 0.1.6
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
2013-03-19 Release 0.1.5
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
2012-05-19 Release 0.1.4
- Update CHANGELOG for 0.1.4 patch bbaabd4 Use built-in file features for config define
2012-05-13 Release 0.1.3
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
2012-05-12 Release 0.1.2
cf93c7e Udate CHANGELOG for 0.1.2 patch 4e3437a Fix style violations and README syntax 8365d8b Fix bad default logic for configs_directory param
2012-05-11 Release 0.1.1
4cf6223 Update CHANGELOG for 0.1.1 release cb217bf Update README file 9c96e28 Clean up puppet-lint style errors
2012-05-09 Release 0.1.0
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
2012-05-02 Release 0.0.3
1daec40 Update CHANGELOG for 0.0.3 release 9349442 Update xinetd resources (changed param name) e82cdbc Add version number of released concat module
2012-04-26 Release 0.0.2
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
2011-12-15 Release 0.0.1
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
* This Changelog was automatically generated by github_changelog_generator
Dependencies
- puppetlabs/concat (>= 4.1.0 < 7.0.0)
- puppetlabs/stdlib (>= 4.25.0 < 7.0.0)
- puppetlabs/xinetd (>= 2.0.0 < 4.0.0)
Copyright (C) 2012 Computer Action Team Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS