First, create the appropriate directories like tags/some_role/hardware_tag.txt
The text file, hardware_tag.txt
can have any metadata you'd like, as long as it's in a format that facter will read.
See https://docs.puppet.com/facter/3.1/custom_facts.html#external-facts
# hardware_tag.txt
role=labmac
building=nh
room=101
dualboot=true
Then make the package
# creates the pkg according to the makefile build instruction
make ROLE=some_role
# imports the out/puppet-tag-some_role.pkg into munki
make munki