Hi I'd like to make a puppet resource/task dependent on multiple other tasks.
For example:
file{'~/foo':}
file{'~/bar':}
file{'~/foobar':
require => File['~foo'],
require => File['~bar']
}
What's the correct syntax to define this?
Thanks
From Language: Data Types
Resource attributes which can optionally accept multiple values (including the relationship metaparameters) expect those values in an array.
file{'~/foo':}
file{'~/bar':}
file{'~/foobar':
require => [ File['~foo'], File['~bar'] ]
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With