Puppet Class: aptrepo::ztp_juniper

Defined in:
modules/aptrepo/manifests/ztp_juniper.pp

Overview

SPDX-License-Identifier: Apache-2.0 Adds script which Juniper devices fetch/execute during ZTP provisioning

Parameters:

  • ztp_juniper_root_password (String)


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'modules/aptrepo/manifests/ztp_juniper.pp', line 3

class aptrepo::ztp_juniper (
    String $ztp_juniper_root_password,
) {

    file { '/srv/private/junos':
        ensure => 'directory',
    }

    $homer_key = secret('keyholder/homer.pub')
    file { '/srv/private/junos/ztp-juniper.sh':
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        content => template('aptrepo/ztp-juniper.sh.erb'),
    }
}