Project

General

Profile

Download (1.35 KB) Statistics
| Branch: | Tag: | Revision:
<%#
kind: ZTP
name: Junos default ZTP config
model: ProvisioningTemplate
oses:
- Junos
description: |
Generates a Junos OS configuration file. That can be used by ZTP on Juniper
network devices. For more information, see https://projects.theforeman.org/issues/3906
-%>
system {
host-name <%= @host.shortname %>;
root-authentication {
encrypted-password "<%= root_pass %>"; ## SECRET-DATA
}
services {
ssh;
netconf {
ssh;
}
}
syslog {
user * {
any emergency;
user info;
}
file messages {
any notice;
authorization info;
}
console {
user info;
}
}
}
interfaces {
vme {
unit 0 {
family inet {
dhcp;
}
}
}
}
event-options {
generate-event {
fmztp time-interval 90;
}
policy fmztp {
events fmztp;
then {
execute-commands {
commands {
"op url <%= foreman_url('provision')%>.slax";
}
}
}
}
}
protocols {
igmp-snooping {
vlan all;
}
rstp;
lldp {
interface all;
}
lldp-med {
interface all;
}
}
ethernet-switching-options {
storm-control {
interface all;
}
}
    (1-1/1)