Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Manage rsyncd.conf using augeas
Puppet Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
files/selinux
manifests
spec
.fixtures.yml
.gitignore
.puppet-lint.rc
.sync.yml
.travis.yml
CHANGELOG.md
Gemfile
README.md
Rakefile
metadata.json

README.md

Rsyncd

Puppet Forge Version Puppet Forge Downloads Build Status Gemnasium By Camptocamp

Requirements

Example usage

package { ["rsync", "xinetd"]: ensure => present }
service { "xinetd": ensure => running }

include rsyncd
$password = generate("/usr/bin/pwgen", 8, 1)

file { "/backup-mysql":
  ensure => directory,
  mode => 0775,
  owner => "dba",
  group => "dba",
}

file { "/home/dba/rsyncd.secret":
  content => "backup:${password}",
  replace => no,
  mode => 0460,
  owner=> "root",
  group => "dba",
  require => User["dba"],
}

rsyncd::export { "backup":
  path => "/backup-mysql",
  chroot => true,
  readonly => true,
  uid => "dba",
  gid => "dba",
  users => "backup",
  secrets => "/home/dba/rsyncd.secret",
  allow => "192.168.0.0/24",
  require => [File["/backup-mysql"], File["/home/dba/rsyncd.secret"]],
  prexferexec => "/home/dba/bin/pre-exec.sh"
  postxferexec => "/home/dba/bin/post-exec.sh"
}
Something went wrong with that request. Please try again.