Could not evaluate: Could not retrieve information from source(s)
Oops! I was evaluating a template, NOT a file.
file {
"/destination/file/path":
source => template("path/to/template");
}
The key is that "source" should be "content"!
file {
"/destination/file/path":
content => template("path/to/template");
}
file {
"/destination/file/path":
source => template("path/to/template");
}
The key is that "source" should be "content"!
file {
"/destination/file/path":
content => template("path/to/template");
}
So, what was happening behind the scenes is that puppet was trying to source the literal value of the evaluated template file. Could be useful?
Comments