1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- {%- set user = salt['pillar.get']('nodes:' ~ grains['id'] ~ ':pppoe:user', 'WRONG USER') %}
- user "{{ user }}"
- {%- set default_iface = 'eth2' %}
- {%- if salt['grains.get']('oscodename') == 'stretch' %}
- {%- set default_iface = 'enp3s0' %}
- {%- endif %}
- {%- set iface = salt['pillar.get']('nodes:' ~ grains['id'] ~ ':pppoe:iface', default_iface) %}
- pty "/usr/sbin/pppoe -I {{ iface }} -T 80 -m 1452"
- noipdefault
- hide-password
- lcp-echo-interval 20
- lcp-echo-failure 3
- connect /bin/true
- noauth
- persist
- mtu 1492
- noaccomp
- default-asyncmap
|