Ask Your Question
0

Sourcing a file from https without SSL verification

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

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 https://example.com:5480/oa/yum_oa_al...: SSL_connect returned=1 errno=0 state=error: certificate verify failed

The resource is described as follows:

  file {
    "/etc/yum/repos.d/yum_oa_all.repo":
      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
1

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

joshc gravatar image

Try the steps recommended in https://tickets.puppetlabs.com/browse....

edit flag offensive delete link more

Comments

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 -0500 )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

Stats

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

Seen: 41 times

Last updated: Aug 02