Puppet Class: profile::access_new_install

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

Overview

SPDX-License-Identifier: Apache-2.0 install the private key needed to contact newly-installed servers

to set up the initial puppet run.

This key is dangerous, do not deploy widely! Also install a convenience script to ssh in using this key



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
# File 'modules/profile/manifests/access_new_install.pp', line 6

class profile::access_new_install {
    file { '/root/.ssh/new_install':
        owner     => 'root',
        group     => 'root',
        mode      => '0400',
        content   => secret('ssh/new_install/new_install'),
        show_diff => false,
    }
    file { '/root/.ssh/new_install.pub':
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        content => secret('ssh/new_install/new_install.pub'),
    }
    file { '/usr/local/bin/install-console':
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => 'puppet:///modules/role/access_new_install/install-console',
    }
    file { '/usr/local/bin/install_console':
        ensure => 'link',
        target => '/usr/local/bin/install-console',
    }
}