Custom macros?

I was wondering if there is some way to create custom macros for provisioning templates.

I think this has been done as part of a plugin, but I think writing a plugin might be more work than needs to be done.

Essentially I’m trying to run some commands locally on my foreman server as part of a kickstart template and I’d like to avoid turning safemode rendering off.

A plugin might be the best bet, because we are unlikely to add a macro like that for security reasons.

What is your use case by the way?