Hi. I need a working example of how to use a "transformer" to specify
a command to create the promised file based on a different origin
file.
I looked at Reference Manual section "7.4.18 transformer" but could
not get a simpler example to work.
Here is what I tried:
bundle agent example {
files:
"/tmp/aleksey.txt"
create => "true", # Must have this!
#transformer => "/bin/date";
transformer => "/bin/cat /etc/passwd";
}
There are two ways to use a transformer, one with $(this.promiser),
one without. I am trying to use a transformer without this.promiser
The file I want to create is "/tmp/aleksey.txt". Cfengine does create
this file - but it is zero bytes in size.
If I run cf-agent with the -I switch, the output from the transformer
command is displayed. Shouldn't it go in the /tmp/aleksey.txt file?
I don't know if I've hit a bug in Cfengine or if I just don't
understand how to use this attribute.
Thanks,
Aleksey
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine