Puppet Class: deployment::rsync

Defined in:
modules/deployment/manifests/rsync.pp

Overview

Parameters:

  • deployment_server (Any)
  • cron_ensure (Any) (defaults to: 'absent')


6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'modules/deployment/manifests/rsync.pp', line 6

class deployment::rsync($deployment_server, $cron_ensure='absent') {
    include ::rsync::server

    rsync::server::module { 'trebuchet_server':
        path        => '/srv/deployment',
        read_only   => 'yes',
        hosts_allow => $::network::constants::special_hosts[$realm]['deployment_hosts'],
    }

    cron { 'sync_deployment_dir':
        ensure  => $cron_ensure,
        command => "/usr/bin/rsync -avz --delete ${deployment_server}::trebuchet_server /srv/deployment > /dev/null 2>&1",
        minute  => 0,
    }


}