Changeset 382 for trunk


Ignore:
Timestamp:
Sep 13, 2009, 10:01:25 PM (15 years ago)
Author:
sebas
Message:

agrege hardy y jaunty + limpiez

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/puppet/modules/di_netboot_assistant/manifests/init.pp

    r381 r382  
    33#
    44
    5 
    65class di_netboot_assistant {
    76
    8 # sources.list with the lastest Ubuntu releases
     7   package { [ "di-netboot-assistant" ]: ensure => installed }
     8
     9   # sources.list with the lastest Ubuntu releases
    910   file { "/etc/di-netboot-assistant/di-sources.list":
    1011      owner => root,
     
    1415   }
    1516
    16 # some customization of the pxe menu
     17   # some customization of the pxe menu
    1718   file { "/etc/di-netboot-assistant/pxelinux.HEAD":
    1819      owner => root,
     
    2425    exec { "di_netboot_assistant_lenny":
    2526        command => "di-netboot-assistant install lenny --arch=amd64,i386 &>/dev/null",
     27        creates => "/var/lib/tftpboot/debian-installer/lenny/i386/linux",
    2628        path => "/bin:/sbin:/usr/sbin:/usr/bin",
    27         require => [Package["di-netboot-assistant"], File["/etc/di-netboot-assistant/di-sources.list", File["/etc/di-netboot-assistant/pxelinux.HEAD"]]
     29        require => [Package["di-netboot-assistant"], File["/etc/di-netboot-assistant/di-sources.list"], File["/etc/di-netboot-assistant/pxelinux.HEAD"]]
    2830    }
    2931
    30 ## todo: parse the configurations and a preseed...
    31 # add the repo for hardy and jaunty
    32 # put the pxelinux.head.HEAD before executing the following
    33 # exec : di-netboot-assistant (--verbose --offline) install jaunty --arch=amd64,i386
    34 # exec : di-netboot-assistant (--verbose --offline) install hardy --arch=amd64,i386
    35 # exec : di-netboot-assistant (--verbose --offline) install lenny --arch=amd64,i386
    36 #
     32    exec { "di_netboot_assistant_hardy":
     33        command => "di-netboot-assistant install hardy --arch=amd64,i386 &>/dev/null",
     34        creates => "/var/lib/tftpboot/debian-installer/hardy/i386/linux",
     35        path => "/bin:/sbin:/usr/sbin:/usr/bin",
     36        require => [Package["di-netboot-assistant"], exec["di_netboot_assistant_lenny"]]
     37    }
    3738
    38     package { [ "di-netboot-assistant" ]: ensure => installed }
    39 
     39    exec { "di_netboot_assistant_jaunty":
     40        command => "di-netboot-assistant install jaunty --arch=amd64,i386 &>/dev/null",
     41        creates => "/var/lib/tftpboot/debian-installer/jaunty/i386/linux",
     42        path => "/bin:/sbin:/usr/sbin:/usr/bin",
     43        require => [Package["di-netboot-assistant"], exec["di_netboot_assistant_lenny"]]
     44    }
    4045}
Note: See TracChangeset for help on using the changeset viewer.