Puppet Class: profile::toolforge::grid::bastion

Defined in:
modules/profile/manifests/toolforge/grid/bastion.pp

Summary

grid-specific bastion stuff

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • active_cronrunner (Stdlib::Host) (defaults to: lookup('profile::toolforge::active_cronrunner'))


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
32
33
34
35
36
37
38
39
# File 'modules/profile/manifests/toolforge/grid/bastion.pp', line 3

class profile::toolforge::grid::bastion (
    Stdlib::Host $active_cronrunner = lookup('profile::toolforge::active_cronrunner'),
) {
    include profile::toolforge::grid::exec_environ

    file { '/etc/toollabs-cronhost':
        ensure  => file,
        owner   => 'root',
        group   => 'root',
        mode    => '0644',
        content => $active_cronrunner,
    }

    file { '/usr/local/bin/crontab':
        ensure  => 'link',
        target  => '/usr/bin/oge-crontab',
        require => Package['misctools'],
    }

    file { '/usr/local/bin/qstat-full':
        ensure => file,
        owner  => 'root',
        group  => 'root',
        mode   => '0655',
        source => 'puppet:///modules/profile/toolforge/qstat-full',
    }

    # TODO: why is this not in ::submithost?
    file { "${profile::toolforge::grid::base::store}/submithost-${facts['fqdn']}":
        ensure  => file,
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        require => File[$profile::toolforge::grid::base::store],
        content => "${::ipaddress}\n",
    }
}