----- Original Message ----- > From: "geog" <[email protected]> > To: "Puppet Users" <[email protected]> > Sent: Monday, April 23, 2012 10:11:30 AM > Subject: [Puppet Users] How can i make a 'file' resource depend on package > installation? > > basically i want to add to my file resource a requirements on a pre- > installed package and if its not installed should be first installed. > > file { > require => Package["SomePackage"] > } > > I understand require is not supported in file resource is there any > other solution to have this dependency?
Require is whats called a meta paramater - it's supported on all resource types including File. Same for subscribe, notify and a few others -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
