Puppet: System Administration Automated

Support

Ticket #1029 (new enhancement)

Opened 10 months ago

Last modified 10 months ago

Arrays are not supported in selectors

Reported by: phips Assigned to: community
Priority: normal Milestone: unplanned
Component: language Version: 0.23.2
Severity: normal Keywords: selector, array
Cc: Triage Stage: Accepted
Attached Patches: None Complexity: Medium

Description

Utilising an array in a selector would be nice, i.e.

file {"blah":
  source => $hostname ? {
    ["host1","host2"] => "somefile",
    default           => "some_other_file"
  }
}

Change History

02/05/08 07:29:03 changed by luke

  • complexity changed from Unknown to Medium.
  • stage changed from Unreviewed to Accepted.
  • milestone set to unplanned.

I consider this a "nice to have", as opposed to a "need to have", so if anyone else wants to take a crack at it...