Ask Your Question

Sourcing a file from https without SSL verification

asked 2018-07-30 09:55:57 -0600

garron gravatar image

Using a file resource with source of http. The file is hosted on a web server using self signed certificate. As the self signed certificate isn't trusted by the Puppet clients or the Puppet master, we are unable to retrieve the source.

Error: /Stage[main]/Hpoa_install_config::Pkginstall/File[/etc/yum/repos.d/yum_oa_all.repo]: Could not evaluate: Could not retrieve file metadata for SSL_connect returned=1 errno=0 state=error: certificate verify failed

The resource is described as follows:

  file {
      ensure  => 'file',
      source  => "$reposerver/oa/yum_oa_all.repo",
      owner   => 'root',
      group   => 'root',
      mode    => '0640',
      before  => Package[$sequence_install],

Is there any attribute for the file resource that avoid certificate verification?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-08-02 00:20:18 -0600

joshc gravatar image

Try the steps recommended in

edit flag offensive delete link more


Thanks @joshc, You spotted a problem I was going to run into but hadn't yet. Whilst it doesn't resolve what I needed in terms of avoiding the checks, fixing the certificates is really the correct way to achieve my goal.

garron gravatar imagegarron ( 2018-08-02 04:43:38 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-07-30 09:55:57 -0600

Seen: 47 times

Last updated: Aug 02