Nexus file download using puppet -


i looking puppet script download file nexus storage. have below script runs without issues, file not getting downloaded.

this nexus.pp class :

class nexus (     $url ="http://nexus.repoexp" ,    $username = "xxxxx",    $password =  "xxxxx"  ) {     }  node "nexus_application" {                  include nexus  }  ==============================================  separate artifact.pp file  define nexus::artifact (    $gav,    $repository,    $output,    $packaging  = 'jar',    $classifier = undef,    $ensure     = update,    $timeout    = undef,    $owner      = undef,    $group      = undef,    $mode       = undef  ) {    include nexus  if $ensure == present {      exec { "download ${name}":        command => $cmd,        creates => $output,        timeout => $timeout,      }  elsif $ensure == absent {      file { "remove ${name}":        ensure => absent,        path   => $output,      }    } else {      exec { "download ${name}":        command => $cmd,        timeout => $timeout,      }  if $ensure != absent {      file { $output:        ensure  => file,        require => exec["download ${name}"],        owner   => $owner,        group   => $group,        mode    => $mode,      }  } ============================================================== module class name nexus  nexus::artifact {'chameleon web distribution':    gav        => "org.ow2.chameleon:distribution-web:0.3.0-snapshot",    classifier => 'distribution',`enter code here`    packaging  => 'zip',    repository => "public-snapshots",    output     => "/tmp/distribution-web-0.3.0-snapshot.z`enter code here`ip" } 


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -