Template engine using hierarchical substitution for Puppet through the ENC interface