Issue #1152 has been updated by luke.

Status changed from Accepted to Needs design decision


----------------------------------------
Bug #1152: interface{} fails on RHEL
http://reductivelabs.com/redmine/issues/show/1152

Author: apenney
Status: Needs design decision
Priority: Normal
Assigned to: luke
Category: interface
Target version: 
Keywords: 
Complexity: Unknown
Patch: Code
Affected version: 


I've been doing some work on why interface{} fails on a RHEL5.2 server, and so 
far I've done the below patch to fix most of the problems.  I am having the 
trouble that a puppetd --test --trace run says that name is undefined now, but 
as you can see it's listed below.  I've exhausted my debugging for the moment, 
I can't figure out what is going on as I don't understand the prefetching, but 
hopefully someone can proceed from the below.
<pre>
diff -u /usr/lib/ruby/site_ruby/1.8/puppet/type/interface.rb interface.rb
--- /usr/lib/ruby/site_ruby/1.8/puppet/type/interface.rb        2008-02-27 
12:54:50.000000000 -0500
+++ interface.rb        2008-03-21 09:28:41.000000000 -0400
@@ -3,8 +3,9 @@
 
        @doc = "Create configuration for IP address aliases and loopback 
addresses."
 
-       newparam(:name, :namevar => true) do
+       newparam(:name) do
                desc "The ipaddress to add to alias or loopback/dummy interface"
+               isnamevar
        end
 
     ensurable
@@ -38,6 +39,14 @@
                newvalue(:false)
        end
 
+       newproperty(:bootproto) do
+               desc "Method used to determine protocol used to obtain 
configuration."
+               newvalue(:none)
+               newvalue(:bootp)
+               newvalue(:dhcp)
+               newvalue(:static)
+       end
+
        newproperty(:ifnum) do
                desc "If not automatically configuring the dummy interface or
               and alias. This is use to force a given number to be used"
@@ -51,6 +60,23 @@
                desc "Interface options."
        end
 
+       newproperty(:network) do
+               desc "Network address for the interface."
+       end
+
+       newproperty(:broadcast) do
+               desc "Broadcast address for the interface."
+       end
+
+       newproperty(:gateway) do
+               desc "Gateway address for the interface."
+       end
+
+       newproperty(:type) do
+               desc "Gateway address for the interface."
+               newvalue (:Ethernet)
+       end
+
     newparam(:target) do
         include Puppet::Util::Warnings
         desc "The path to the file this resource creates."

</pre>


----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to