diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-06-08 05:27:36 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-06-08 05:27:36 +0200 |
commit | 0c94b5e9a5bca4f01621be7b0792c16adb7b15f2 (patch) | |
tree | 3486c9e7dbb830d2a5ecc7ea939a4e64d69f1677 /roles/dellos6/bootstrap/templates/init.j2 | |
parent | Merge branch 'no-more-with' (diff) |
initial support for dellos6 switches
Diffstat (limited to 'roles/dellos6/bootstrap/templates/init.j2')
-rw-r--r-- | roles/dellos6/bootstrap/templates/init.j2 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/roles/dellos6/bootstrap/templates/init.j2 b/roles/dellos6/bootstrap/templates/init.j2 new file mode 100644 index 00000000..2435c738 --- /dev/null +++ b/roles/dellos6/bootstrap/templates/init.j2 @@ -0,0 +1,27 @@ +enable +configure + +no ip domain-lookup +hostname {{ host_name }} +{# TODO: hardcoded address and vlan tag! #} +interface vlan 1 +ip address 192.168.42.200 255.255.255.0 +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 %} + +enable password {{ ansible_become_password }} +end + +write |