卷曲:(35)遇到文件结束傀儡

时间:2018-01-18 16:21:41

标签: puppet nexus puppet-enterprise

我正在使用puppet-archive https://github.com/voxpupuli/puppet-archive从nexus存储库下载jar。

/puppetmaster-devteam-starter_kit/control-repo/site/role/manifests/getnexusjar.pp

class role::getnexusjar {

  include profile::getjarfromnexus
}

/puppetmaster-devteam-starter_kit/control-repo/site/profile/manifests/getjarfromnexus.pp

class profile::getjarfromnexus {
  include '::archive'

$test_jar_dir = [ '/home/test/', '/home/test/jar/', ]

  file { $test_jar_dir:
    ensure => 'directory',
    owner  => 'root',
    group  => 'wheel',
    mode   => '0750',
 }

  archive::nexus { '/home/test/jar/test-fileprocess-workflow-1.0.0.jar':
    ensure     => present,
    extract_path  => '/home/test/jar',   
    url        => 'https://nexus.testmonitoring.com/repository/test-repo/com/test/fileprocess/test-fileprocess-workflow/1.0.0/test-fileprocess-workflow-1.0.0.jar',
    username   => "testuser",
    password   => "asdfghfgh",
    gav        => 'com.test.fileprocess:test-fileprocess-workflow:1.0.0',
    repository => 'test-repo',
    packaging  => 'jar',
    extract    => false,
  }
}

错误:

Execution of '/usr/bin/curl https://nexus.testmonitoring.com/repository/test-repo/com/test/file/test-fileprocess-workflow/1.0.0/test-fileprocess-workflow-1.0.0.jar/service/local/artifact/maven/content?g=com.test.file&a=test-fileprocess-workflow&v=1.0.0&r=test-repo&p=jar -o /tmp/test-fileprocess-workflow-1.0.0.jar_20180118-30748-1j50ff9 -fsSL --max-redirs 5 --user testuser:asdfghfgh’ returned 35: curl: (35) Encountered end of file

0 个答案:

没有答案