Puppet: System Administration Automated

Support

Ticket #834 (closed defect: fixed)

Opened 1 year ago

Last modified 10 months ago

interface aliases on redhat

Reported by: puppet Assigned to: luke
Priority: high Milestone: elmo
Component: library Version: 0.23.2
Severity: major Keywords: interface redhat aliases
Cc: Triage Stage: Accepted
Attached Patches: Code Complexity: Unknown

Description

The filename for the interface files, when creating an alias is incorrect.

Although checked with Redhat, there is a dependency on the filename starting :

ifcfg-<interface>:

Therefore, the filename generated by Puppet of ifcfg-<name> does not work; as it results in the OS trying to bring up the alias (in some circumstances) prior to the interface. A simple patch to the provider solves this and is attached to the ticket (generated against trunk in svn). It should be applied to :

trunk/lib/puppet/provider/interface/redhat.rb

Attachments

redhat.rb.patch (0.6 kB) - added by puppet on 09/24/07 17:30:11.
Patch to interface provider redhat.rb to fix alias filename issue

Change History

09/24/07 17:30:11 changed by puppet

  • attachment redhat.rb.patch added.

Patch to interface provider redhat.rb to fix alias filename issue

09/24/07 18:39:59 changed by stick

Not all interface's use a colon (':')

if you are creating trunked interfaces the file looks like: ifcfg-eth0.400 (where 400 is the vlan id)

09/25/07 11:13:48 changed by puppet

  • keywords changed from interface redhat to interface redhat aliases.

Indeed, the problem with the missing : is just for aliases; not all interfaces.

The patch I attached just changes the behaviour of aliases on an existing interface which do as far as I can tell, require a filename of the format ifcfg-<interface>: The behaviour in all other cases remains the same.

As I understand it, the example ifcfg-eth0.400 is not an alias, so does not need a : and would be unchanged by the patch. If, however, you wanted to create an alias on this interface, the file name would indeed have to include the : and start ifcfg-eth0.400:

09/26/07 01:37:11 changed by michael

  • owner changed from community to luke.
  • priority changed from normal to high.
  • stage changed from Unreviewed to Accepted.
  • severity changed from normal to major.
  • milestone set to elmo.

11/20/07 21:06:24 changed by luke

  • status changed from new to closed.
  • resolution set to fixed.

Applied in [96b3cde842a9efa3fbd8226c6f044a6e18c612d0].