Package VMBuilder :: Package plugins :: Package ubuntu :: Module jaunty
[frames] | no frames]

Source Code for Module VMBuilder.plugins.ubuntu.jaunty

 1  # 
 2  #    Uncomplicated VM Builder 
 3  #    Copyright (C) 2007-2009 Canonical Ltd. 
 4  #     
 5  #    See AUTHORS for list of contributors 
 6  # 
 7  #    This program is free software: you can redistribute it and/or modify 
 8  #    it under the terms of the GNU General Public License version 3, as 
 9  #    published by the Free Software Foundation. 
10  # 
11  #    This program is distributed in the hope that it will be useful, 
12  #    but WITHOUT ANY WARRANTY; without even the implied warranty of 
13  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
14  #    GNU General Public License for more details. 
15  # 
16  #    You should have received a copy of the GNU General Public License 
17  #    along with this program.  If not, see <http://www.gnu.org/licenses/>. 
18  # 
19  import os 
20  import VMBuilder.disk as disk 
21  from   VMBuilder.util import run_cmd 
22  from   VMBuilder.plugins.ubuntu.intrepid import Intrepid 
23   
24 -class Jaunty(Intrepid):
25 valid_flavours = { 'i386' : ['generic', 'server', 'virtual'], 26 'amd64' : ['generic', 'server', 'virtual'], 27 'lpia' : ['lpia', 'lpiacompat'] } 28 xen_kernel_flavour = 'server' 29 ec2_kernel_info = { 'i386' : 'aki-c553b4ac', 'amd64' : 'aki-d653b4bf' } 30 ec2_ramdisk_info = { 'i386' : 'ari-c253b4ab', 'amd64' : 'ari-d753b4be' } 31 chpasswd_cmd= [ 'chpasswd' ] 32
33 - def install_ec2(self):
34 self.run_in_target('apt-get', '--force-yes', '-y', 'install', 'server^') 35 self.install_from_template('/etc/update-motd.d/51_update-motd', '51_update-motd') 36 # lucid and later wont have an /etc/ec2-init, so only write 37 # that file if the dir exists 38 if os.path.isdir("/etc/ec2-init"): 39 self.install_from_template('/etc/ec2-init/is-compat-env', 'is-compat-env') 40 self.run_in_target('chmod', '755', '/etc/update-motd.d/51_update-motd')
41