Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow_insecure not working in Windows #213

Closed
alexjfisher opened this issue Aug 31, 2016 · 1 comment
Closed

allow_insecure not working in Windows #213

alexjfisher opened this issue Aug 31, 2016 · 1 comment

Comments

@alexjfisher
Copy link
Member

I'm not sure if it's specifically Windows, (where I run puppet 3.8 with puppetlabs shipped ruby 2.0.0), or the ruby provider in general, but #198 doesn't seem to work for me.

What does work is if I move the verify_mode = OpenSSL::SSL::VERIFY_NONE into the 3rd parameter of Net::HTTP.start (the hash where only use_ssl is currently set)

@alexjfisher
Copy link
Member Author

Also not working in Linux when using the ruby provider.

alex@alex-VirtualBox:~$ puppet --version
4.6.1
alex@alex-VirtualBox:~$ facter -p rubyversion
2.3.1
alex@alex-VirtualBox:~$ uname -a
Linux alex-VirtualBox 4.4.0-28-generic #47-Ubuntu SMP Fri Jun 24 10:09:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
alex@alex-VirtualBox:~$ cat test.pp
archive {'/tmp/master.zip':
  source         => 'https://192.30.253.113/voxpupuli/puppet-archive/archive/master.zip',
  provider       => 'ruby',
  allow_insecure => true,
}
alex@alex-VirtualBox:~$ puppet apply -t test.pp
Info: Loading facts
Info: Loading facts
Notice: Compiled catalog for alex-virtualbox.ordsvy.gov.uk in environment production in 0.14 seconds
Info: Applying configuration version '1472635763'
Error: Could not set 'present' on ensure: hostname "192.30.253.113" does not match the server certificate at 1:/home/alex/test.pp
Error: Could not set 'present' on ensure: hostname "192.30.253.113" does not match the server certificate at 1:/home/alex/test.pp
Wrapped exception:
hostname "192.30.253.113" does not match the server certificate
Error: /Stage[main]/Main/Archive[/tmp/master.zip]/ensure: change from absent to present failed: Could not set 'present' on ensure: hostname "192.30.253.113" does not match the server certificate at 1:/home/alex/test.pp
Notice: Applied catalog in 0.68 seconds

alexjfisher added a commit to alexjfisher/puppet-archive that referenced this issue Aug 31, 2016
randradas pushed a commit to randradas/puppet-archive that referenced this issue Oct 30, 2016
cegeka-jenkins pushed a commit to cegeka/puppet-archive that referenced this issue Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant