/[adm]/puppet/modules/auto_installation/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/auto_installation/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1442 - (show annotations) (download)
Fri Apr 1 00:44:15 2011 UTC (11 years, 1 month ago) by misc
File size: 1244 byte(s)
add basic structure for pxe boot
1 # what should be possible :
2 # install a base system
3 # - mandriva
4 # - mageia
5 # - others ? ( for testing package ? )
6
7 # install a server
8 # - by name, with a valstart clone
9
10 class auto_installation {
11 class pxe_menu {
12 package { 'syslinux':
13
14 }
15
16 $pxe_dir = "/var/lib/pxe"
17 file { $pxe_dir:
18 ensure => directory,
19 }
20
21 file { "$pxe_dir/pxelinux.0":
22 ensure => "/usr/lib/syslinux/pxelinux.0",
23 }
24
25 file { "$pxe_dir/menu.c32":
26 ensure => "/usr/lib/syslinux/menu.c32"
27 }
28
29 file { "$pxe_dir/pxelinux.cfg":
30 ensure => directory,
31 }
32
33 # default file should have exported ressources
34 file { "$pxe_dir/pxelinux.cfg/default":
35 ensure => present,
36 content => template('auto_installation/default'),
37 }
38
39 }
40
41 # define pxe_linux_entry
42 # meant to be exported
43 # name
44 # label
45 # kernel
46 # append
47
48 #
49 # define a template for autoinst
50 # - basic installation
51 # - server installation ( with server name as a parameter )
52
53
54 # TODO move here the downloader of boot.iso from libvirt module
55 }

  ViewVC Help
Powered by ViewVC 1.1.28