Revisión 504
Añadido por Francisco Rodrigo hace alrededor de 12 años
tareas_puppet/servidores_aula/squeeze/ltsp_squid/manifests/init.pp | ||
---|---|---|
source=>"puppet:///ltsp_squid/interfaces.cable",
|
||
}
|
||
|
||
file { "/etc/network/interfaces.wifi":
|
||
owner=>root, group=>root, mode=>644,
|
||
source=>"puppet:///ltsp_squid/interfaces.wifi",
|
||
}
|
||
|
||
file { "/etc/cron.d/debian-edu-config":
|
||
owner=>root, group=>root, mode=>644,
|
||
source=>"puppet:///ltsp_squid/debian-edu-config",
|
tareas_puppet/servidores_aula/squeeze/ltsp_squid/files/enable-local-proxy | ||
---|---|---|
#selecciona la tarjeta de entrada según la configuracion de interfaces
|
||
[ -n "`grep iface /etc/network/interfaces|grep wlan0`" ] && INSIDE_IF=wlan0 || INSIDE_IF=eth0
|
||
|
||
#selecciona la tarjeta de entrada para la opción mixta
|
||
[ -n "`grep iface /etc/network/interfaces|grep br0`" ] && INSIDE_IF=br0
|
||
|
||
#-A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
|
||
|
||
# Only enable by default if LTSP or lessdisks is installed
|
tareas_puppet/servidores_aula/squeeze/ltsp_squid/files/interfaces.wifi | ||
---|---|---|
# This file describes the network interfaces available on your system
|
||
# and how to activate them. For more information, see interfaces(5).
|
||
|
||
# The loopback network interface
|
||
#auto lo eth0 eth3
|
||
auto lo eth3 wlan0
|
||
iface lo inet loopback
|
||
|
||
iface eth3 inet dhcp
|
||
ifup eth3
|
||
post-up /usr/sbin/ethtool -s $IFACE wol g
|
||
post-down /usr/sbin/ethtool -s $IFACE wol g
|
||
|
||
iface wlan0 inet static
|
||
address 192.168.0.254
|
||
netmask 255.255.255.0
|
||
broadcast 192.168.0.255
|
||
|
||
Exportar a: Unified diff
Actualizada la tarea para que funcione correctamente con eth0, wlan0 y br0