Comments (3)
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.
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.
@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)
- Update documentation to use `rule` instead of `iptables_rule` HOT 1
- iptables v1.8.2 (legacy): unknown option "--to-ports" HOT 2
- Getting issue while running Bootstrap command in Chef HOT 2
- debian if-pre-up.d script references nonexistent /etc/iptables/general HOT 2
- Doesn't work on ubuntu bionic with netplan HOT 1
- iptables cookbooks breaks at load time if it's in the dependency tree on non-linux platforms HOT 2
- 6.0.1 using Ruby 2.4 method causing error on chef client <13 HOT 3
- iptables_rule resource uses wrong properties HOT 11
- ip_tables 7.0.0 failing because of an unknown check HOT 3
- iptables_load wrapper does not obey iptables-restore exit status HOT 2
- How to order rules since 6.0? HOT 8
- iptables rule creation failing HOT 2
- Can the iptables and ip6tables be enable/disable separately? HOT 1
- iptables_service fails under Chef 16.13 with undefined method `new_resource' for Chef::Resource::Service HOT 1
- Feature request: Alternative to specifying an exact line_number HOT 2
- deprecated default recipe does a lot more than resources HOT 2
- iptables v1.8.4 (legacy): unknown option "--to-ports" HOT 1
- Request: better /usr/sbin/rebuild-iptables error messages on failure HOT 2
- fix rebuild-iptables to load system-created rules HOT 2
- Can't start iptables cookbook on host without ipv6 support HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iptables.