diff options
author | Xabier de Zuazo <xabier@onddo.com> | 2013-02-11 18:22:49 +0100 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-06-19 14:09:58 -0700 |
commit | c424c43db41c9b31fefc398dd7b8e858a1e0258b (patch) | |
tree | 16254129e4075035abdf3590332116c8d558d6c7 /lib/chef/provider/ifconfig | |
parent | a78016020edc124f19d5919029595d97bf6be264 (diff) | |
download | chef-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.rb | 2 |
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 %> |