Puppet Class: profile::toolforge::clush::target

Defined in:
modules/profile/manifests/toolforge/clush/target.pp

Overview

Parameters:

  • master (String) (defaults to: lookup('profile::toolforge::clush::master'))


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'modules/profile/manifests/toolforge/clush/target.pp', line 7

class profile::toolforge::clush::target(
    String $master = lookup('profile::toolforge::clush::master'),
) {
    ::clush::target { 'clushuser':
        ensure => present,
    }

    # Allow `clushuser` to SSH into the instance.
    security::access::config { 'clushuser':
        content => "+ : clushuser : ${master}\n",
    }

    ferm::service { $title:
        proto  => 'tcp',
        port   => 22,
        srange => "@resolve((${master}))",
    }

    # Give `clushuser` complete sudo rights
    sudo::user { 'clushuser':
        ensure     => present,
        privileges => ['ALL = (ALL) NOPASSWD: ALL'],
    }
}