7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'modules/profile/manifests/toolforge/grid/node/compute.pp', line 7
class profile::toolforge::grid::node::compute (
Stdlib::Unixpath $etcdir = lookup('profile::toolforge::etcdir'),
){
include ::profile::toolforge::grid::exec_environ
include ::profile::toolforge::grid::hba
include ::profile::toolforge::grid::submit_host
motd::script { 'exechost-banner':
ensure => present,
source => "puppet:///modules/profile/toolforge/40-${::labsproject}-exechost-banner.sh",
}
# TODO: once exec nodes from the eqiad.wmflabs generation are gone, return to using $facts['fqdn']
file { "${profile::toolforge::grid::base::store}/execnode-${facts['hostname']}.${::labsproject}.eqiad1.wikimedia.cloud":
ensure => file,
owner => 'root',
group => 'root',
mode => '0444',
require => File[$profile::toolforge::grid::base::store],
content => "${::ipaddress}\n",
}
}
|