In the documentation and examples provided under the cloudinit porition of the plugin there are no examples or explanation of jinja2 templating. The documentation is also poor on Cloudify's website.
I would reccomend using some of the examples and documentation from this repository:
https://github.com/jrzeszutek/cloudify-utilities-plugin/tree/master/cloudify_cloudinit