1 |
misc |
1442 |
# 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 |
|
|
} |