summaryrefslogtreecommitdiff
path: root/lib/chef/provider/ifconfig
diff options
context:
space:
mode:
authorXabier de Zuazo <xabier@onddo.com>2013-02-11 18:22:49 +0100
committerBryan McLellan <btm@opscode.com>2013-06-19 14:09:58 -0700
commitc424c43db41c9b31fefc398dd7b8e858a1e0258b (patch)
tree16254129e4075035abdf3590332116c8d558d6c7 /lib/chef/provider/ifconfig
parenta78016020edc124f19d5919029595d97bf6be264 (diff)
downloadchef-c424c43db41c9b31fefc398dd7b8e858a1e0258b.tar.gz
[CHEF-3029] onboot improved/fixed in Provider::Ifconfig::Redhat
Diffstat (limited to 'lib/chef/provider/ifconfig')
-rw-r--r--lib/chef/provider/ifconfig/redhat.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/ifconfig/redhat.rb b/lib/chef/provider/ifconfig/redhat.rb
index 73e94fb1a1..ef35b0e012 100644
--- a/lib/chef/provider/ifconfig/redhat.rb
+++ b/lib/chef/provider/ifconfig/redhat.rb
@@ -27,7 +27,7 @@ class Chef
super(new_resource, run_context)
@config_template = %{
<% if @new_resource.device %>DEVICE=<%= @new_resource.device %><% end %>
-<% if @new_resource.onboot %>ONBOOT=<%= @new_resource.onboot %><% end %>
+<% if @new_resource.onboot == "yes" %>ONBOOT=<%= @new_resource.onboot %><% end %>
<% if @new_resource.bootproto %>BOOTPROTO=<%= @new_resource.bootproto %><% end %>
<% if @new_resource.target %>IPADDR=<%= @new_resource.target %><% end %>
<% if @new_resource.mask %>NETMASK=<%= @new_resource.mask %><% end %>