2014-10-10 75 views
1

我在看一些木偶代碼來試試,看看它是如何工作的,並低於Exec和文件語句中有我很困惑,因爲沒有在文件中指定命令屬性聲明,也不是文件關閉。木偶Exec用沒有命令屬性

有人能解釋這是如何工作嗎?

case $operatingsystem { 
     CentOS, RedHat, OracleLinux, Ubuntu, Debian, SLES: { 
     $execPath  = "/usr/java/${fullJDKName}/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:" 
     $path   = $downloadDir 
     $beaHome   = $mdwHome 

     $oraInventory = "${oracleHome}/oraInventory" 
     $oraInstPath  = "/etc" 
     $java_statement = "java ${javaParameters}" 

     Exec { path  => $execPath, 
       user  => $user, 
       group  => $group, 
       logoutput => true, 
      } 
     File { 
       ensure => present, 
       mode => 0775, 
       owner => $user, 
       group => $group, 
       backup => false, 
      } 
     } 

回答