Giter Site home page Giter Site logo

Comments (3)

river-fall avatar river-fall commented on August 17, 2024

Also:

Errno::ENOENT
-------------
No such file or directory - /usr/sbin/rebuild-iptables

  Resource Declaration:
  ---------------------
  # In /var/chef/cache/cookbooks/iptables/providers/rule.rb

   28:   execute 'rebuild-iptables' do
   29:     command '/usr/sbin/rebuild-iptables'
   30:     action :nothing
   31:   end
   32:

from iptables.

zrobisho avatar zrobisho commented on August 17, 2024

I also had this failure, but it doesn't seem to be an issue with the cookbook, it was an issue in my environment. This line

:hashbang => ::File.exist?('/usr/bin/ruby') ? '/usr/bin/ruby' : '/opt/chef/embedded/bin/ruby' 

seemed to cause the failure because I had installed ruby with rvm, and chef with gem install, so no ruby existed at /usr/bin/ruby or /opt/chef/embedded/bin/ruby. I got this to work by linking /usr/bin/ruby to the ruby that was installed by rvm.

from iptables.

juliandunn avatar juliandunn commented on August 17, 2024

@river-fall that sounds like you're invoking the iptables_rule LWRP before you've actually installed the /usr/sbin/rebuild-iptables script using the default recipe.

@zrobisho This cookbook -- and most of Chef's cookbooks -- are only intended to support the full-stack Chef Client installer which installs into /opt. As you mention, if you have nonstandard install mechanisms you can wrap this cookbook with a recipe beforehand that creates the symlink.

from iptables.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.