Presentazione di Caretaker per TYPO3, un tool utile per monitorare e osservare decine o centinaia di proprie installazioni di TYPO3.
Tiene sotto controllo aggiornamenti e variabili di sistema, verifica se sono installabili aggiornamenti o estensioni a rischio e altro ancora.
David Denicolò al T3camp Italia 2011.
Caretaker monitor TYPO3 CMS T3CampItalia 2011 David Denicolò
1. Monitorare TYPO3
con Caretaker
David Denicolò <david@intera.it>
T3Camp Italia TYPO3 Caretaker
Bologna 28/29 Ottobre 2011
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
2. about me
David Denicolò
CTO @ InteRa
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
3. Introduzione
TYPO3 è un sistema complesso
• diverse versioni del core
• migliaia di estensioni
• configurazioni e setup personalizzate
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
4. Monitorare TYPO3
TYPO3 ha aggiornamenti frequenti
• bug e security fixes del core
• aggiornamenti delle estensioni
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
5. Caretaker
Cos’è Caretaker
• Un sistema di monitoraggio per osservare diverse
installazioni TYPO3.
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
6. Caretaker
Come funziona
• 1 punto di osservazione (caretaker server)
• n installazioni di TYPO3 (siti da osservare)
• chiavi RSA (comunicazione criptata)
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
7. Caretaker
Come funziona?
• interfacce BE, FE, CLI
• test dal server Caretaker verso
le singole instanze
• RSA per i test
• altri test in sviluppo
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
8. Caretaker
Come funziona?
• interfacce BE, FE, CLI
• test dal server Caretaker verso caretaker
...
le singole instanze instance
caretaker e risultati test
• RSA per i test
FE - BE - CLI
• altri test in sviluppo Server Caretaker
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
9. Caretaker
istanza di TYPO3 (sito da osservare)
Come funziona? caretaker
instance
• interfacce BE, FE, CLI
• test dal server Caretaker verso caretaker
...
le singole instanze instance
caretaker e risultati test
• RSA per i test
FE - BE - CLI
• altri test in sviluppo Server Caretaker
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
10. Caretaker
istanza di TYPO3 (sito da osservare)
Come funziona? caretaker
instance
• interfacce BE, FE, CLI RSA
Ping
HTTP
• test dal server Caretaker verso caretaker
...
le singole instanze instance
caretaker e risultati test
• RSA per i test
FE - BE - CLI
• altri test in sviluppo Server Caretaker
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
11. Caretaker: COSA VERIFICA
• ping e http • versione di TYPO3
• estensioni non • configurazioni
sicure TYPO3_CONF_VARS
• aggiornamenti • blacklist username
estensioni e password per gli
utenti BE
• cerca estensioni
tramite “extkey” • presenza file
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
12. Cosa serve
Caretaker server: TYPO3 in locale
• caretaker
• caretaker_instance
• tt_address, css_styled_content
• scheduler
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
13. Caretaker
Caretaker server scheduler task
• Testrunner (caretaker)
• TYPO3 Versionnumbers Update (caretaker)
• Update Extension List (em)
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
14. Cosa serve
Istanze di TYPO3 da osservare
• ext caretaker_instance
• chiavi RSA
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
15. Configurazione
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
16. Configurazione
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
17. Nuova instanza TYPO3
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
18. Nuova instanza TYPO3
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
19. Primo test: ping
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
20. Primo test: ping
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
21. Test HTTP
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
22. Test HTTP
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
23. Scheduler
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
24. Scheduler
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
25. Test TYPO3
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
26. Test TYPO3
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
27. Chiavi RSA
1) Generare le chiavi RSA del server
caretaker
2) Generare le chiavi RSA dell’instanza
3) inserire la chiave pubblica dell’instanza
nel record relativo sul server
4) inserire la chiave pubblica del server
nell’instanza
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
28. Inserire le chiavi RSA
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
29. Inserire le chiavi RSA
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
30. Test estensioni non sicure
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
31. Test estensioni non sicure
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
32. agg. estensioni e scheduler
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
33. agg. estensioni e scheduler
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
34. test CONF_VARS
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
35. test CONF_VARS
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
36. Osservare più istanze
Ampliamo l’osservazione configurando
più istanze
Caretaker può osservare più siti
contemporaneamente
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
37. Ampliare l’osservazione
Caretaker offre alcuni aiuti per
osservare più siti
contemporaneamente
tutti i test configurati in precedenza
sono utilizzabili per le nuove istanze
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
38. Ampliare l’osservazione
gruppi per i siti
gruppi per i test
un test o un gruppo di test può essere
assegnato a tutte le istanze o a solo
una parte
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
39. Gruppi di istanze
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
40. Gruppi di istanze
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
41. Gruppi di test
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
42. Gruppi di test
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
43. Caretaker: modulo lista
I record di caretaker sono modificabili
anche nella modalità lista di TYPO3
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
44. Caretaker: modulo lista
I record di caretaker sono modificabili
anche nella modalità lista di TYPO3
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
45. Interfaccia FE
Caretaker ha alcuni moduli Frontend
che mostrano i risultati
dell’osservazione
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
46. Interfaccia FE
Caretaker ha alcuni moduli Frontend
che mostrano i risultati
dell’osservazione
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
47. Interfaccia FE
creare una pagina radice
creare un template
includere i template di caretaker
creare una pagina per i dettagli
configurare il pid della pagina dettagli in TS
• caretaker.singleLinkID = 76,0
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
48. Interfaccia FE
inserire i plugin nella pagina
• Caretaker Abstract
• Caretaker Details
• Caretaker Tactical Overview
• Caretaker Test Graph
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
49. interfaccia FE
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
50. interfaccia FE
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
51. Sistema di notifiche
Caretaker invia le
notifiche via email
• utilizza i dati di
tt_address
• si può impostare per
singolo sito o per gruppo
• notifiche avanzate con
ruoli (non ancora
implementato)
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
52. Sistema di notifiche
Caretaker invia le
notifiche via email
• utilizza i dati di
tt_address
• si può impostare per
singolo sito o per gruppo
• notifiche avanzate con
ruoli (non ancora
implementato)
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
53. Altri test in sviluppo
SNMP
Selenium
TYPO3 Integrity
Sistema di notifiche scalabile
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
54. riferimenti
http://www.typo3-caretaker.org/
http://forge.typo3.org/projects/extension-caretaker
https://svn.typo3.org/TYPO3v4/Extensions/caretaker
news://news.netfielders.de:119/typo3.projects.caretaker
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011
55. Grazie per l’attenzione
• www.intera.it
• twitter: davdenic
• davdenic.tumblr.com
T3Camp Italia TYPO3 Caretaker
L’evento italiano dedicato a TYPO3 David Denicolò - InteRa srl
mercoledì 2 novembre 2011