lsyncd

contributions requested
Lsyncd module

18,270 downloads

16,225 latest version

3.1 quality score

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 1.0.0 (latest)
  • 0.1.1
  • 0.1.0
  • 0.0.1
released Apr 1st 2015
This version is compatible with:
  • Puppet Enterprise 3.x
  • Puppet >=2.7.20 <4.0.0
  • RedHat
    ,
    CentOS

Start using this module

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

Add this module to your Puppetfile:

mod 'thias-lsyncd', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add thias-lsyncd
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install thias-lsyncd --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

thias/lsyncd — version 1.0.0 Apr 1st 2015

Overview

Install, enable and configure lsyncd, the live syncing daemon. This module has initially been developed for and tested on Red Hat Enterprise Linux 6 only.

  • lsyncd : Main class to install, enable and configure the service.

Examples

Simple instance using the lsyncd.conf file from a module named example :

class { 'lsyncd': config_source => 'puppet:///modules/example/lsyncd.conf' }

If you are going to be interfacing lsyncd with csync2 to perform an all-way near-instantaneous file synchronization, you can use the provided template :

$lsyncd_csync2_sources = {
  '/var/www'  => 'www',
  '/srv/data' => 'data',
}
class { 'lsyncd':
  config_content => template('lsyncd/lsyncd-csync2.conf.erb'),
}

This will have lsyncd trigger csync2 -C www -x for changes made to /var/www and csync2 -C data -x for changes made to /srv/data. Compared to using rsync, using csync2 has the advantage of providing safe file deleting in any direction.