Opened 9 years ago

Closed 9 years ago

#25 closed task (fixed)

Helper script for template updates

Reported by: Vincent Caron Owned by: Vincent Caron
Priority: major Component: Bearmail
Keywords: Cc: Lucas Bonnet,


I need a tool to simply update templates, if possible several (versions and on several servers) without much effort. It must at least:

  • remount the template fs r/w
  • mount /proc
  • execute any command via chroot
  • cleanup: umount /proc and remount itself r/o

Sponsored by the need to install and configure the 'locales' package in all templates plus the fact that managing the remounting of templates which are bind mounted many times is something you don't want to handle manually.

Change History (4)

comment:1 Changed 9 years ago by tool

(In [592]) (vcaron) ror-farm-template: execute commands in a template (not a vserver instance), see #25

comment:2 Changed 9 years ago by Vincent Caron

Works, I used that one-liner wich is easy to execute for any number of templates:

# ror-farm-template template-lenny18 sh -c 'aptitude update && aptitude install locales && dpkg-reconfigure locales'

Needs a workaround for the VG names (vg-vservers vs. vg-raid).

comment:3 Changed 9 years ago by root

(In [593]) (vcaron) Check existence of vg-vservers VG, otherwise use vg-raid - see #25

comment:4 Changed 9 years ago by Vincent Caron

Resolution: fixed
Status: newclosed

Also handy for minor edits:

ror-farm-template template-lenny vi /etc/apt/apt.conf.d/50proxy

And of course for *kof kof* security upgrades :).

Note: See TracTickets for help on using tickets.