Forge Home

timemachine

Configures a TimeMachine network share (just like a TimeCapsule) for MacOS X backups using AFP

7,942 downloads

7,770 latest version

3.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.0.0 (latest)
  • 0.0.1
released May 7th 2016

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'jethrocarr-timemachine', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jethrocarr-timemachine
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jethrocarr-timemachine --version 1.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

jethrocarr/timemachine — version 1.0.0 May 7th 2016

puppet-timemachine

Overview

This Puppet module setups an AFP share using netatalk specifically configured to act like an Apple TimeCapsule device, to allow for easy backups from MacOS to a GNU/Linux server.

Usage

Simply configure where to store the backups and optionally how many MB to limit each user's backup to.

class { 'timemachine':
  location     => "/mnt/backup/timemachine',
  volsizelimit => '1000000', # 1TB per user backing up
}

By default this module will create directories for each real user on the server in the configured location as well as configuring a firewall rule. These can be disabled if desired, eg:

class { 'timemachine':
  location           => "/mnt/backup/timemachine',
  volsizelimit       => '1000000', # 1TB per user backing up
  manage_location    => false,
  manage_firewall_v4 => false,
  manage_firewall_v6 => false,
}

Refer to manifests/params.pp for all options and information on each one.

Requirements

Supported host operating systems:

  • Debian (tested on Debian 8 Stable)
  • Ubuntu (untested)

Note that this module manages netatalk and will cause issues if you are also using netatalk for general purpose AFP shares. It is recommend that you move any file shares to Samba, given that from Mavericks onwards AFP is deprecated in favour of SMB2 - although Time Machine seems to not have recieved this memo hence this module using netatalk/AFP :-)

Development

Contributions in the form of Pull Requests (or beer donations) are always welcome. Additional host OS support PRs particularly welcome.

License

This module is licensed under the Apache License, Version 2.0 (the "License"). See the LICENSE or 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.