import "sys" $host = sys.hostname() file "/tmp/mgmt/${host}" { content => "hello from ${host}!\n", state => $const.res.file.state.exists, }