The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using https://tickets.puppetlabs.com. See the following page for information on filing tickets with JIRA:

Bug #1152

interface{} fails on RHEL

Added by about 8 years ago. Updated almost 8 years ago.

Status:DuplicateStart date:
Priority:NormalDue date:
Assignee:Luke Kanies% Done:

0%

Category:-
Target version:-
Affected Puppet version: Branch:
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com


Description

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.

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."


Related issues

Related to Puppet - Feature #3153: Network interface type Accepted 02/05/2010

History

#1 Updated by about 8 years ago

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."
 

#2 Updated by Redmine Admin almost 8 years ago

  • Status changed from 1 to Accepted

#3 Updated by Luke Kanies almost 8 years ago

  • Status changed from Accepted to Needs Decision

#4 Updated by Luke Kanies almost 8 years ago

  • Status changed from Needs Decision to Duplicate

Both this ticket and #1128 have a lot of good data in them, but this one was opened later so I’m closing it as a duplicate of #1128.

Also available in: Atom PDF