Revisión 539
Añadido por Francisco Rodrigo hace alrededor de 10 años
tareas_puppet/workstations/wheezy/work_iescuota/files/instalar-iescuota.sh | ||
---|---|---|
#!/bin/sh
|
||
# Instalacion de iexquota para todos los usuarios.
|
||
# Programa que informa sobre la utilizacion de la cuota de cada usuario.
|
||
# Francisco Rodrigo
|
||
# IES Javier Garcia Tellez
|
||
|
||
#***************************************************************************************
|
||
|
||
tar xvfz /opt/quota-status.tgz -C /opt
|
||
cd /tmp/iexquota
|
||
sh instalar.sh
|
||
cd -
|
||
|
||
#***************************************************************************************
|
||
tareas_puppet/workstations/wheezy/work_iescuota/files/quota-status.desktop | ||
---|---|---|
[Desktop Entry]
|
||
Name=IES quota-status
|
||
Comment=Run IES quota-status
|
||
TryExec=/opt/quota-status/quota.py
|
||
Exec=/opt/quota-status/quota.py
|
||
Terminal=false
|
||
Type=Application
|
||
StartupNotify=true
|
||
Categories=
|
||
tareas_puppet/workstations/wheezy/work_iescuota/leeme.txt | ||
---|---|---|
BREVE DESCRIPCION DE LA EJECUCION DEL MODULO
|
||
--------------------------------------------
|
||
|
||
Destino : Workstations.
|
||
Acción : Instala IES Cuota para controlar la cuota de los usuarios.
|
||
|
||
Notas : Realiza la instalacion de los paquete necesiarios: quota, python-eggtrayicon y python-glade2.
|
||
Por lo tanto necesitan añadirse estos paquetes en el respectivo musthave.ies o mayhave.ies
|
||
en el servidor principal para que no se desinstale vía pkgsync.
|
||
|
||
Se ejecuta un instalador que coloca en el directorio /opt el programa en python y el quota-status.desktop
|
||
que llama al ejecutable se añade al directorio /etc/xdg/autostart de cada equipo.
|
||
|
||
|
||
INSTRUCCIONES DE INSTALACION DEL MODULO
|
||
---------------------------------------
|
||
|
||
Desempaquetar en /etc/puppet/modules
|
||
Incluir la linea include "nombre_modulo" en la respectiva clase específica.
|
||
|
||
------------------------------------------------
|
||
|
||
06-Marzo-2015.
|
||
Francisco Rodrigo López
|
||
Administrador informático del IES Javier García Téllez.
|
||
tareas_puppet/workstations/wheezy/work_iescuota/manifests/init.pp | ||
---|---|---|
# /etc/puppet/modules/work_iescuota/manifests/init.pp
|
||
|
||
class work_iescuota {
|
||
|
||
package { quota:
|
||
ensure => installed
|
||
}
|
||
|
||
|
||
package { python-eggtrayicon:
|
||
ensure => installed
|
||
}
|
||
|
||
package { python-glade2:
|
||
ensure => installed
|
||
}
|
||
|
||
|
||
file {"/etc/xdg/autostart/quota-status.desktop":
|
||
owner=>root, group=>root, mode=>755,
|
||
source=>"puppet:///modules/work_iescuota/quota-status.desktop",
|
||
require => Package["quota","python-eggtrayicon"],
|
||
}
|
||
|
||
file {"/root/quota-status.tgz":
|
||
owner=>root, group=>root, mode=>644,
|
||
source=>"puppet:///modules/work_iescuota/quota-status.tgz",
|
||
require => Package["quota","python-eggtrayicon","python-glade2"],
|
||
notify => Exec["instalar-iescuota"],
|
||
}
|
||
|
||
exec {"instalar-iescuota":
|
||
path => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
|
||
command => "tar xvfz /root/quota-status.tgz -C /opt",
|
||
subscribe => File["/root/quota-status.tgz","/etc/xdg/autostart/quota-status.desktop"],
|
||
refreshonly => true,
|
||
}
|
||
|
||
}
|
||
|
||
|
||
Exportar a: Unified diff
Añadidas las tareas de ltsp y workstation para el control de cuotas de usuario