Puppet Class: profile::codesearch

Defined in:
modules/profile/manifests/codesearch.pp

Overview

Parameters:

  • base_dir (Stdlib::Unixpath) (defaults to: lookup('profile::codesearch::base_dir'))
  • ports (Hash[String, Integer]) (defaults to: lookup('profile::codesearch::ports'))


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

class profile::codesearch (
    Stdlib::Unixpath $base_dir = lookup('profile::codesearch::base_dir'),
    Hash[String, Integer] $ports = lookup('profile::codesearch::ports'),
) {

    ferm::conf { 'docker-preserve':
        ensure => present,
        prio   => 20,
        source => 'puppet:///modules/codesearch/ferm/docker-preserve.conf',
    }

    ferm::service { 'codesearch':
        proto  => 'tcp',
        port   => '3002',
        srange => '$CACHES',
    }

    class { '::codesearch':
        base_dir => $base_dir,
        ports    => $ports,
    }
}