diff options
author | Michael Scherer <misc@mageia.org> | 2011-04-01 00:44:15 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-04-01 00:44:15 +0000 |
commit | 022bdb8d2b48fec2245e64725f73a58990efd468 (patch) | |
tree | 029caec1101573e5a6e8ffac3bfe759fc54d493f /modules/auto_installation/manifests | |
parent | 13dad16194bd35c60bd51ce2aaa6a813e8238574 (diff) | |
download | puppet-022bdb8d2b48fec2245e64725f73a58990efd468.tar puppet-022bdb8d2b48fec2245e64725f73a58990efd468.tar.gz puppet-022bdb8d2b48fec2245e64725f73a58990efd468.tar.bz2 puppet-022bdb8d2b48fec2245e64725f73a58990efd468.tar.xz puppet-022bdb8d2b48fec2245e64725f73a58990efd468.zip |
add basic structure for pxe boot
Diffstat (limited to 'modules/auto_installation/manifests')
-rw-r--r-- | modules/auto_installation/manifests/init.pp | 55 |
1 files changed, 55 insertions, 0 deletions
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 +} |