Puppet Class: profile::ci::shipyard

Defined in:
modules/profile/manifests/ci/shipyard.pp

Overview

Parameters:

  • registry (Any) (defaults to: hiera('docker::registry'))
  • username (Any) (defaults to: hiera('docker::registry::username'))
  • password (Any) (defaults to: hiera('docker::registry::password'))
  • http_proxy (Any) (defaults to: hiera('http_proxy', undef))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'modules/profile/manifests/ci/shipyard.pp', line 1

class profile::ci::shipyard(
    $registry = hiera('docker::registry'),
    $username = hiera('docker::registry::username'),
    $password = hiera('docker::registry::password'),
    $http_proxy = hiera('http_proxy', undef),
) {
    class { '::docker_pkg': }

    file { '/etc/docker-pkg/':
        ensure => directory,
        owner  => root,
        group  => root,
        mode   => '0755',
    }

    # TODO: make jenkins able to read this file as well?
    file { '/etc/docker-pkg/integration.yaml':
        ensure  => present,
        content => template('profile/ci/shipyard/docker-pkg-integration-config.yaml.erb'),
        owner   => 'root',
        group   => 'contint-admins',
        mode    => '0440'
    }
}