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

Procps conditional failing #48

Closed
arlimus opened this Issue Sep 15, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@arlimus
Member

arlimus commented Sep 15, 2014

I only noticed this on a Ubuntu server 14.04 with chef 11.16.0. This is from a chef-solo run:

    ================================================================================
    Error executing action `start` on resource 'service[procps]'
    ================================================================================

    ArgumentError
    -------------
    wrong number of arguments (2 for 0)

    Cookbook Trace:
    ---------------
    /chef/cookbooks-2/os-hardening/recipes/sysctl.rb:88:in `block (2 levels) in from_file'

    Resource Declaration:
    ---------------------
    # In /chef/cookbooks-2/os-hardening/recipes/sysctl.rb

     84:   service 'procps' do
     85:     provider service_provider
     86:     supports restart: false, reload: false
     87:     action [:enable, :start]
     88:     only_if { cookbook_version('sysctl', '< 0.6.0') }
     89:   end
     90: end

    Compiled Resource:
    ------------------
    # Declared in /chef/cookbooks-2/os-hardening/recipes/sysctl.rb:84:in `from_file'

    service("procps") do
      provider Chef::Provider::Service::Upstart
      action [:enable, :start]
      supports {:restart=>false, :reload=>false}
      retries 0
      retry_delay 2
      guard_interpreter :default
      service_name "procps"
      pattern "procps"
      cookbook_name :"os-hardening"
      recipe_name "sysctl"
      only_if { #code block }
    end

rollbrettler pushed a commit to rollbrettler/chef-os-hardening that referenced this issue Sep 16, 2016

Merge pull request #48 from bkw/badges
supply proper links for the badges
@artem-sidorenko

This comment has been minimized.

Show comment
Hide comment
@artem-sidorenko

artem-sidorenko May 13, 2017

Member

The problem is somewhere on the line 88, where we had a sysctl version expression. As we do not have it anymore, I do not think this issue is still there. Feel free to reopen if needed

Member

artem-sidorenko commented May 13, 2017

The problem is somewhere on the line 88, where we had a sysctl version expression. As we do not have it anymore, I do not think this issue is still there. Feel free to reopen if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment