I don't think that that's gonna work... As the error message says subscribe needs a resource reference which means that you need something like File["myfile"].
What is it exactly that you want to do? You want to start a service after 2 files being created/changed? Then you should try something like subscribe => [File["file1"], File["file2"]] And of course you need to define file1 and file2 as well ;) In your actual manifest are there whitespaces between the "$" and the variablename, too? This may also cause some syntax problems, I guess. On 11 Mrz., 17:51, Antonio Xanxess <[email protected]> wrote: > Hello! I'm trying to create a resource of type service in which there > is a clause subscribe. In this clause need to put a variable, and when > I run the client gives me this error: > warning: Configuration could not be instantiated: Parameter subscribe > failed: Relationships must be resource references at / etc / puppet / > manifests / classes / custom_functions.pp: 73; using cached catalog > Then you expose the piece of code and see if you have idea why this > happens. > > service ($ title: > ensure => true, > enable => true, > subscribe => [$ model] > ) > > The variable $ model returns the following: > debug: Scope (Custom_functions: Superservice [apache2]) File [ "/ etc/ > apache2/sites-available/ssl"], File [ "/ etc/apache2/apache.pem"] > > It is possible that the clause does not support variables subscribe? > I've been looking all over the Internet and have not found the answer. > > Thanks for everything, greetings. -- 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.
