/[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 1443 - (show annotations) (download)
Fri Apr 1 01:44:35 2011 UTC (13 years ago) by misc
File size: 1292 byte(s)
use a class to store variable, to reuse this in define
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 variables {
12 $pxe_dir = "/var/lib/pxe"
13 }
14
15 class pxe_menu inherits variables {
16 package { 'syslinux':
17
18 }
19
20 file { $pxe_dir:
21 ensure => directory,
22 }
23
24 file { "$pxe_dir/pxelinux.0":
25 ensure => "/usr/lib/syslinux/pxelinux.0",
26 }
27
28 file { "$pxe_dir/menu.c32":
29 ensure => "/usr/lib/syslinux/menu.c32"
30 }
31
32 file { "$pxe_dir/pxelinux.cfg":
33 ensure => directory,
34 }
35
36 # default file should have exported ressources
37 file { "$pxe_dir/pxelinux.cfg/default":
38 ensure => present,
39 content => template('auto_installation/default'),
40 }
41
42 }
43
44 # define pxe_linux_entry
45 # meant to be exported
46 # name
47 # label
48 # kernel
49 # append
50
51 #
52 # define a template for autoinst
53 # - basic installation
54 # - server installation ( with server name as a parameter )
55
56
57 # TODO move here the downloader of boot.iso from libvirt module
58 }

  ViewVC Help
Powered by ViewVC 1.1.30