Bug #1839

Can't address tagged vlan interfaces in puppet

Added by Chris Moates over 3 years ago. Updated over 3 years ago.

Status:Closed Start date:12/23/2008
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Keywords: Affected Facter version:
Branch:
Votes: 0

Description

Tagged vlan ethernet interfaces in linux are of the form ethX.nnnn where nnnn is the vlan tag ID and X is the ethernet card ID. I’m trying to reference one of these as generated by facter, but am having problems. Here’s some more data:

[root@gims1-temp ~]# facter | grep ipadd
ipaddress => 10.0.36.141
ipaddress_eth0.3002 => 10.0.36.141
[root@gims1-temp ~]# facter ipaddress
10.0.36.141
[root@gims1-temp ~]# facter ipaddress_eth0.3002
[root@gims1-temp ~]#

As you can see, facter doesn’t properly report this out, when asked, but someone suggested that’s a separate facter bug.

Here’s where I try to use the variable in my site.pp:

node gims1-temp {
  $tomcat_listen_ip = $ipaddress_eth0.3002;
  include solr
}

When I try to run puppet against that, I receive:

err: Could not retrieve catalog: Could not parse for environment production: Syntax error at '.'; expected '}' at /etc/puppet/manifests/site.pp:217

History

Updated by James Turnbull over 3 years ago

  • Project changed from Puppet to Facter

Updated by James Turnbull over 3 years ago

  • Status changed from Unreviewed to Needs More Information
  1. The first issue – command-line is a known bug – we’re going to try to address that for version 2.0.

  2. What version of Facter is this?

Updated by Chris Moates over 3 years ago

facter-1.5.2-2.el5.noarch from EPEL.

Updated by James Turnbull over 3 years ago

  • Status changed from Needs More Information to Closed

This will be fixed in Facter 1.5.3

Also available in: Atom PDF