Puppet: System Administration Automated

Support

Ticket #450 (new enhancement)

Opened 2 years ago

Last modified 2 years ago

Dependencies should support multiple names

Reported by: luke Assigned to: luke
Priority: normal Milestone: unplanned
Component: library Version:
Severity: normal Keywords: relationships
Cc: Triage Stage: Needs design decision
Attached Patches: None Complexity: Hard

Description

Puppet should support specifying multiple dependency names in the brackets:

exec { "/bin/echo one": require => Exec[two, three] }

Change History

01/29/07 01:02:31 changed by luke

  • milestone changed from kermit to grover.

I'm delaying this to the next release.

04/05/07 22:34:56 changed by luke

  • specification set to None.
  • patch set to None.
  • complexity set to Hard.
  • approval set to Unnecessary.
  • compatibility set to Unknown.
  • stage set to Needs design decision.

This is actually much more difficult than it seems, because you suddenly get into a situation where you can have nested arrays sent to the client, and since #111 hasn't been fixed yet, nested arrays will break the dependency parameters.

For instance:

  service { yay: require => [File[one,two], File[three]] }

This would compile down to:

[[["file", "one"], ["file", "two"]], ["file", "three"]]

The only solution I can think of is to flatten all arrays in the compiled result before I send it to the client (I have to wait until the last minute, else people could not use nested arrays in things like templates), but even that probably wouldn't work because it would have to be smart enough to know which arrays to flatten and how much (i.e., relationship params *expect* nested arrays, but they have to be set up a specific way).

#448 should hopefully make this mostly obsolete, but it's probably a ways away.

04/30/07 21:25:25 changed by luke

  • milestone changed from grover to elmo.

05/10/07 23:08:11 changed by luke

  • milestone changed from elmo to unplanned.