Changeset 684


Ignore:
Timestamp:
May 6, 2010, 11:26:59 PM (11 years ago)
Author:
sebas@…
Message:

formateo y limitar el exec de rebuildmenu

File:
1 edited

Legend:

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

    r681 r684  
    66class di_netboot_assistant {
    77
    8    package { [ "di-netboot-assistant" ]: ensure => installed }
     8   package { [
     9      "di-netboot-assistant",
     10      "tftpd-hpa"
     11      ]: ensure => installed
     12   }
    913
    1014   # sources.list with the lastest Ubuntu releases
    1115   file { "/etc/di-netboot-assistant/di-sources.list":
    1216      require => Package["di-netboot-assistant"],
    13       owner => root,
    14       group => root,
    15       mode => 644,
    16       source => "puppet:///di_netboot_assistant/di-sources.list"
     17      owner   => root,
     18      group   => root,
     19      mode    => 644,
     20      source  => "puppet:///di_netboot_assistant/di-sources.list"
    1721   }
    1822
     
    2024   file { "/etc/di-netboot-assistant/pxelinux.HEAD":
    2125      require => Package["di-netboot-assistant"],
    22       owner => root,
    23       group => root,
    24       mode => 644,
    25       source => "puppet:///di_netboot_assistant/pxelinux.HEAD",
    26       before => Exec["updatemenu"]
     26      owner   => root,
     27      group   => root,
     28      mode    => 644,
     29      source  => "puppet:///di_netboot_assistant/pxelinux.HEAD",
     30      before  => Exec["updatemenu"]
    2731   }
    2832   
    2933   exec { "updatemenu":
    30        command => "di-netboot-assistant rebuild-menu",
    31        path => "/bin:/sbin:/usr/sbin:/usr/bin",
     34       command   => "di-netboot-assistant rebuild-menu",
     35       path      => "/bin:/sbin:/usr/sbin:/usr/bin",
     36       subscribe => File["/etc/di-netboot-assistant/pxelinux.HEAD"],
    3237    }
    3338
     
    3641     "/var/lib/tftpboot":
    3742      ensure => directory,
    38       owner => "root", group => "root", mode => "755";
     43      owner  => "root", group => "root", mode => "755";
    3944     "/var/lib/tftpboot/pxelinux.cfg":
    4045      ensure => directory,
    41       owner => "root", group => "root", mode => "755";
     46      owner  => "root", group => "root", mode => "755";
    4247     "/var/lib/tftpboot/pxelinux.0":
    4348      ensure => "debian-installer/pxelinux.0";
     
    4954      command => "di-netboot-assistant install lenny --arch=amd64,i386 &>/dev/null",
    5055      creates => "/var/lib/tftpboot/debian-installer/lenny/i386/linux",
    51       path => "/bin:/sbin:/usr/sbin:/usr/bin",
     56      path    => "/bin:/sbin:/usr/sbin:/usr/bin",
    5257      require => [Package["di-netboot-assistant"], File["/etc/di-netboot-assistant/di-sources.list"], File["/etc/di-netboot-assistant/pxelinux.HEAD"]]
    5358   }
     
    5661      command => "di-netboot-assistant install squeeze --arch=amd64,i386 &>/dev/null",
    5762      creates => "/var/lib/tftpboot/debian-installer/squeeze/i386/linux",
    58       path => "/bin:/sbin:/usr/sbin:/usr/bin",
     63      path    => "/bin:/sbin:/usr/sbin:/usr/bin",
    5964      require => [Package["di-netboot-assistant"], File["/etc/di-netboot-assistant/di-sources.list"], File["/etc/di-netboot-assistant/pxelinux.HEAD"]]
    6065   }
     
    6368      command => "di-netboot-assistant install sid --arch=amd64,i386 &>/dev/null",
    6469      creates => "/var/lib/tftpboot/debian-installer/sid/i386/linux",
    65       path => "/bin:/sbin:/usr/sbin:/usr/bin",
     70      path    => "/bin:/sbin:/usr/sbin:/usr/bin",
    6671      require => [Package["di-netboot-assistant"], File["/etc/di-netboot-assistant/di-sources.list"], File["/etc/di-netboot-assistant/pxelinux.HEAD"]]
    6772   }
     
    7075      command => "di-netboot-assistant install hardy --arch=amd64,i386 &>/dev/null",
    7176      creates => "/var/lib/tftpboot/debian-installer/hardy/i386/linux",
    72       path => "/bin:/sbin:/usr/sbin:/usr/bin",
     77      path    => "/bin:/sbin:/usr/sbin:/usr/bin",
    7378      require => [Package["di-netboot-assistant"], exec["di_netboot_assistant_lenny"]]
    7479   }
     
    7782      command => "di-netboot-assistant install jaunty --arch=amd64,i386 &>/dev/null",
    7883      creates => "/var/lib/tftpboot/debian-installer/jaunty/i386/linux",
    79       path => "/bin:/sbin:/usr/sbin:/usr/bin",
     84      path    => "/bin:/sbin:/usr/sbin:/usr/bin",
    8085      require => [Package["di-netboot-assistant"], exec["di_netboot_assistant_lenny"]]
    8186   }
     
    8489      command => "di-netboot-assistant install karmic --arch=amd64,i386 &>/dev/null",
    8590      creates => "/var/lib/tftpboot/debian-installer/karmic/i386/linux",
    86       path => "/bin:/sbin:/usr/sbin:/usr/bin",
     91      path    => "/bin:/sbin:/usr/sbin:/usr/bin",
    8792      require => [Package["di-netboot-assistant"], exec["di_netboot_assistant_lenny"]]
    8893   }
     
    9196      command => "di-netboot-assistant install lucid --arch=amd64,i386 &>/dev/null",
    9297      creates => "/var/lib/tftpboot/debian-installer/lucid/i386/linux",
    93       path => "/bin:/sbin:/usr/sbin:/usr/bin",
     98      path    => "/bin:/sbin:/usr/sbin:/usr/bin",
    9499      require => [Package["di-netboot-assistant"], exec["di_netboot_assistant_lenny"]]
    95100   }
     
    102107
    103108    file { ["/var/lib/tftpboot/debian-installer", "/var/lib/tftpboot/debian-installer/daily", "/var/lib/tftpboot/debian-installer/daily/powerpc/"]:
    104       ensure => directory,
    105       owner => root,
    106       group => root,
     109      ensure  => directory,
     110      owner   => root,
     111      group   => root,
    107112      require => Package["tftpd-hpa"];
    108113    }
Note: See TracChangeset for help on using the changeset viewer.