Version information
released Apr 1st 2015
This version is compatible with:
- Puppet Enterprise 3.x
- Puppet >=2.7.20 <4.0.0
- ,
Start using this module
Add this module to your Puppetfile:
mod 'thias-lsyncd', '1.0.0'
Learn more about managing modules with a PuppetfileDocumentation
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.
- Add sysconfig file with lsyncd_options and lsyncd_user parameters.
- Add /var/run optional sub-directory.
2013-04-19 - 0.1.1
- Use @varname syntax in templates to silence puppet 3.2 warnings.
2013-04-16 - 0.1.0
- Include lsyncd.conf template ready to be used with csync2.
2013-04-16 - 0.0.1
- Initial module release.
Copyright (C) 2013-2015 Matthias Saou 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.