Puppet: System Administration Automated

Support

Ticket #1146 (closed defect: duplicate)

Opened 7 months ago

Last modified 7 months ago

facts with colons are invalid

Reported by: micah Assigned to: community
Priority: normal Milestone:
Component: library Version: 0.24.3
Severity: normal Keywords: facter colon ipaddress
Cc: Triage Stage: Unreviewed
Attached Patches: None Complexity: Unknown

Description

The facter in git HEAD creates facts for available virtual interfaces, such as eth0:0, eth0:1, eth1:0 so that they look like this:

ipaddress_eth0:0 => 123.100.70.2

However because ruby doesn't allow for colons in method or variable names this cannot be referenced in a manifest or template because template support uses method_missing in ruby to look up the variable names.

The colons should be replaced by underscores so ipaddress_eth0_0

Change History

03/20/08 01:11:39 changed by jamtur01

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

03/20/08 01:11:56 changed by jamtur01

Duplicate of [1145]