summaryrefslogtreecommitdiff
path: root/roles/dellos6/bootstrap/templates/init.j2
blob: 42623fecc37623b5d09c009f2e753b549c70c2f3 (plain) (blame)
1
2
3
4
5
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
31
32
33
34
35
36
37
38
enable
configure

no ip domain-lookup
hostname {{ host_name }}

vlan {{ dellos6_mgmt_vlan }}
name mgmt
exit
{% if dellos6_mgmt_interface is defined and dellos6_mgmt_interface != '' %}
interface {{ dellos6_mgmt_interface }}
switchport access vlan {{ dellos6_mgmt_vlan }}
exit
{% endif %}
interface vlan {{ dellos6_mgmt_vlan }}
ip address {{ dellos6_mgmt_ipaddr }} {{ dellos6_mgmt_netmask }}
exit
no spanning-tree

crypto key generate rsa
crypto key generate dsa
ip ssh server
ip ssh pubkey-auth

username "root" password {{ ansible_become_password }} privilege 15
{% for ssh_key in ssh_keys_root %}
crypto key pubkey-chain ssh user-key "root" rsa
key-string row "{{ ssh_key }}"
exit
{% endfor %}

no application install hiveagent
no application install SupportAssist

enable password {{ ansible_become_password }}
end

write