refactor to puppet style syntax

[ci skip]