aruba: truncate long strings
This commit is contained in:
parent
b55d81d6cc
commit
1d4534f19c
3 changed files with 11 additions and 7 deletions
|
@ -14,7 +14,10 @@
|
||||||
aruba__dns_servers:
|
aruba__dns_servers:
|
||||||
- 10.128.0.1
|
- 10.128.0.1
|
||||||
- 2a09:6840:128:0:1::1
|
- 2a09:6840:128:0:1::1
|
||||||
aruba__dns_domain_name: switch.infra.auro.re
|
aruba__dns_domain_names:
|
||||||
|
- switch.infra.auro.re
|
||||||
|
- infra.auro.re
|
||||||
|
- auro.re
|
||||||
aruba__manager_password: "P@ssw0rd!"
|
aruba__manager_password: "P@ssw0rd!"
|
||||||
aruba__operator_password: "P@ssw0rd!"
|
aruba__operator_password: "P@ssw0rd!"
|
||||||
aruba__default_gateways:
|
aruba__default_gateways:
|
||||||
|
|
|
@ -5,6 +5,7 @@ aruba__interfaces: {}
|
||||||
aruba__default_gateways: []
|
aruba__default_gateways: []
|
||||||
aruba__ssh_enabled: False
|
aruba__ssh_enabled: False
|
||||||
aruba__rest_enabled: True
|
aruba__rest_enabled: True
|
||||||
|
aruba__dns_domain_names: []
|
||||||
aruba__loop_protect_disable_timer: 30
|
aruba__loop_protect_disable_timer: 30
|
||||||
aruba__loop_protect_tx_interval: 3
|
aruba__loop_protect_tx_interval: 3
|
||||||
...
|
...
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{ ansible_managed | comment(decoration="; ") }}
|
{{ ansible_managed | comment(decoration="; ") }}
|
||||||
|
|
||||||
hostname {{ aruba__hostname | enquote }}
|
hostname {{ aruba__hostname | truncate(32) | enquote }}
|
||||||
|
|
||||||
include-credentials
|
include-credentials
|
||||||
|
|
||||||
|
@ -20,9 +20,9 @@ time timezone 60
|
||||||
ip dns server-address priority {{ loop.index }} {{ addr | ipaddr }}
|
ip dns server-address priority {{ loop.index }} {{ addr | ipaddr }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if aruba__dns_domain_name is defined %}
|
{% for domain in aruba__dns_domain_names[:5] %}
|
||||||
ip dns domain-name {{ aruba__dns_domain_name | enquote }}
|
ip dns domain-name {{ domain | enquote }}
|
||||||
{% endif %}
|
{% endfor %}
|
||||||
|
|
||||||
; TODO
|
; TODO
|
||||||
{% if False %}
|
{% if False %}
|
||||||
|
@ -98,7 +98,7 @@ ipv6 default-gateway {{ aruba__default_gateways | ipv6 | first }}
|
||||||
{% for id, vlan in aruba__vlans.items() %}
|
{% for id, vlan in aruba__vlans.items() %}
|
||||||
vlan {{ id | int }}
|
vlan {{ id | int }}
|
||||||
{% if vlan.name is defined %}
|
{% if vlan.name is defined %}
|
||||||
name {{ vlan.name | enquote }}
|
name {{ vlan.name | truncate(32) | enquote }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%
|
{%
|
||||||
set untagged =
|
set untagged =
|
||||||
|
@ -142,7 +142,7 @@ set tagged =
|
||||||
{% for id, iface in aruba__interfaces.items() %}
|
{% for id, iface in aruba__interfaces.items() %}
|
||||||
interface {{ id | int }}
|
interface {{ id | int }}
|
||||||
{% if iface.name is defined %}
|
{% if iface.name is defined %}
|
||||||
name {{ iface.name | enquote }}
|
name {{ iface.name | truncate(32) | enquote }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if iface.enabled | default(True) %}
|
{% if iface.enabled | default(True) %}
|
||||||
enable
|
enable
|
||||||
|
|
Loading…
Reference in a new issue