-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
dhparam generation fails #58
Comments
I've been attempting to write a spec to fail this... #64 For me, I'm running: |
root@debian:/tmp# puppet module install camptocamp-openssl |
found my problem... root@host: Debug: Runtime environment: puppet_version=3.8.1, ruby_version=2.1.5, run_mode=user, default_encoding=UTF-8 Debug: Loading external facts from /var/lib/puppet/facts.d Info: Loading facts Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/root_home.rb Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/puppet_vardir.rb Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/package_provider.rb Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/service_provider.rb Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/pe_version.rb Debug: Loading facts from /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb Info: Loading facts Debug: Loading facts from /etc/puppet/modules/openssl/lib/facter/openssl_version.rb Debug: Puppet::Type::Package::ProviderRpm: file rpm does not exist Debug: Puppet::Type::Package::ProviderRug: file /usr/bin/rug does not exist Debug: Puppet::Type::Package::ProviderOpenbsd: file pkg_info does not exist Debug: Puppet::Type::Package::ProviderFreebsd: file /usr/sbin/pkg_info does not exist Debug: Puppet::Type::Package::ProviderPkgin: file pkgin does not exist Debug: Puppet::Type::Package::ProviderPorts: file /usr/local/sbin/portupgrade does not exist Debug: Puppet::Type::Package::ProviderAix: file /usr/bin/lslpp does not exist Debug: Puppet::Type::Package::ProviderYum: file yum does not exist Debug: Puppet::Type::Package::ProviderFink: file /sw/bin/fink does not exist Debug: Puppet::Type::Package::ProviderUp2date: file /usr/sbin/up2date-nox does not exist Debug: Puppet::Type::Package::ProviderPkg: file /usr/bin/pkg does not exist Debug: Puppet::Type::Package::ProviderUrpmi: file urpmi does not exist Debug: Puppet::Type::Package::ProviderPortupgrade: file /usr/local/sbin/portupgrade does not exist Debug: Puppet::Type::Package::ProviderSun: file /usr/bin/pkginfo does not exist Debug: Puppet::Type::Package::ProviderPortage: file /usr/bin/emerge does not exist Debug: Puppet::Type::Package::ProviderPacman: file /usr/bin/pacman does not exist Debug: Puppet::Type::Package::ProviderNim: file /usr/sbin/nimclient does not exist Debug: Puppet::Type::Package::ProviderZypper: file /usr/bin/zypper does not exist Debug: Puppet::Type::Package::ProviderSunfreeware: file pkg-get does not exist Debug: Puppet::Type::Package::ProviderAptrpm: file rpm does not exist Debug: Puppet::Type::Package::ProviderHpux: file /usr/sbin/swinstall does not exist Debug: Puppet::Type::Package::ProviderOpkg: file opkg does not exist Debug: /Package[dummy]: Provider apt does not support features virtual_packages; not managing attribute allow_virtual Debug: Puppet::Type::Service::ProviderUpstart: 0 confines (of 2) were true Debug: Puppet::Type::Service::ProviderRedhat: file /sbin/chkconfig does not exist Debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc does not exist Debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist Debug: Puppet::Type::Service::ProviderOpenrc: file /bin/rc-status does not exist Debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update does not exist Debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl does not exist Notice: Compiled catalog for host in environment production in 0.03 seconds Error: Parameter size failed on Dhparam[/tmp/dhparam.pem]: comparison of String with 0 failed at line 1 /etc/puppet/modules/openssl/lib/puppet/type/dhparam.rb:22:in <=' /etc/puppet/modules/openssl/lib/puppet/type/dhparam.rb:22:in block (3 levels) in <top (required)>'/usr/lib/ruby/vendor_ruby/puppet/parameter.rb:465:in validate' /usr/lib/ruby/vendor_ruby/puppet/parameter.rb:500:in value='/usr/lib/ruby/vendor_ruby/puppet/type.rb:654:in []=' /usr/lib/ruby/vendor_ruby/puppet/type.rb:2272:in block in set_parameters'/usr/lib/ruby/vendor_ruby/puppet/type.rb:2266:in each' /usr/lib/ruby/vendor_ruby/puppet/type.rb:2266:in set_parameters'/usr/lib/ruby/vendor_ruby/puppet/type.rb:2222:in initialize' /usr/lib/ruby/vendor_ruby/puppet/resource.rb:349:in new'/usr/lib/ruby/vendor_ruby/puppet/resource.rb:349:in to_ral' /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:524:in block in to_catalog'/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:516:in each' /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:516:in to_catalog'/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:408:in to_ral' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:225:in block in main'/usr/lib/ruby/vendor_ruby/puppet/context.rb:64:in override' /usr/lib/ruby/vendor_ruby/puppet.rb:244:in override'/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:198:in main' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:159:in run_command'/usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in block (2 levels) in run' /usr/lib/ruby/vendor_ruby/puppet/application.rb:507:in plugin_hook'/usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in block in run' /usr/lib/ruby/vendor_ruby/puppet/util.rb:488:in exit_on_fail'/usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in run' /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:146:in run'/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:92:in execute' /usr/bin/puppet:8:in 'root@host:# |
Fixed in #70 |
How to reproduce:
apt-get install puppet
puppet module install camptocamp-openssl
puppet apply -e "dhparam { '/tmp/dhparam.pem': ensure => present, size => 2048 }" --modulepath=/etc/puppet/modules --verbose
Error: Parameter size failed on Dhparam[/tmp/dhparam.pem]: comparison of String with 0 failed at line 1 Wrapped exception: comparison of String with 0 failed
The text was updated successfully, but these errors were encountered: