From 022bdb8d2b48fec2245e64725f73a58990efd468 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 1 Apr 2011 00:44:15 +0000 Subject: add basic structure for pxe boot --- modules/auto_installation/manifests/init.pp | 55 +++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 modules/auto_installation/manifests/init.pp (limited to 'modules/auto_installation/manifests') diff --git a/modules/auto_installation/manifests/init.pp b/modules/auto_installation/manifests/init.pp new file mode 100644 index 00000000..86ff186d --- /dev/null +++ b/modules/auto_installation/manifests/init.pp @@ -0,0 +1,55 @@ +# what should be possible : +# install a base system +# - mandriva +# - mageia +# - others ? ( for testing package ? ) + +# install a server +# - by name, with a valstart clone + +class auto_installation { + class pxe_menu { + package { 'syslinux': + + } + + $pxe_dir = "/var/lib/pxe" + file { $pxe_dir: + ensure => directory, + } + + file { "$pxe_dir/pxelinux.0": + ensure => "/usr/lib/syslinux/pxelinux.0", + } + + file { "$pxe_dir/menu.c32": + ensure => "/usr/lib/syslinux/menu.c32" + } + + file { "$pxe_dir/pxelinux.cfg": + ensure => directory, + } + + # default file should have exported ressources + file { "$pxe_dir/pxelinux.cfg/default": + ensure => present, + content => template('auto_installation/default'), + } + + } + + # define pxe_linux_entry + # meant to be exported + # name + # label + # kernel + # append + + # + # define a template for autoinst + # - basic installation + # - server installation ( with server name as a parameter ) + + + # TODO move here the downloader of boot.iso from libvirt module +} -- cgit v1.2.1