Displaying 1 result from an estimated 1 matches for "generate_otherfile".
2008 Dec 09
0
Accessing a file source from a custom function
I''d like to be able to generate the contents of a file resource based on the
contents of another file resources. For example:
File { "/tmp/myfile":
source => "puppet:///mymodule/myfile",
}
File { "/tmp/otherfile":
content =>generate_otherfile(File["/tmp/myfile"])),
}
in this case the generate_otherfile() function will use the resource
reference passed to manipulate the contents of myfile to generate
otherfile. My question are 1) whether or not it is possible to access the
contents of myfile (i.e., by finding the appropriate...