Puppet Class: profile::toolforge::services::aptly

Defined in:
modules/profile/manifests/toolforge/services/aptly.pp

Overview

Parameters:

  • active_node (Any) (defaults to: lookup('profile::toolforge::services::active_node'))
  • standby_node (Any) (defaults to: lookup('profile::toolforge::services::standby_node'))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'modules/profile/manifests/toolforge/services/aptly.pp', line 1

class profile::toolforge::services::aptly(
    $active_node = lookup('profile::toolforge::services::active_node'),
    $standby_node = lookup('profile::toolforge::services::standby_node'),
) {
    aptly::repo { 'buster-tools':
        publish      => true,
    }
    aptly::repo { 'stretch-tools':
        publish      => true,
    }
    aptly::repo { 'jessie-tools':
        publish      => true,
    }

    # its interesting to serve some packages to toolsbeta for testing purposes
    aptly::repo { 'stretch-toolsbeta':
        publish      => true,
    }
    aptly::repo { 'buster-toolsbeta':
        publish      => true,
    }

    # make sure we have a backup server ready to take over
    rsync::quickdatacopy { 'aptly-sync':
        ensure      => present,
        auto_sync   => true,
        source_host => $active_node,
        dest_host   => $standby_node,
        module_path => '/srv/packages',
    }
}