Sure thing! (Sorry about that. I assumed everyone already knew this). Here is the format that I used that worked:
I used “array” and plugged this into the var section (this is 2 servers)
[{“ip”:“1.1.1.1”,“aliases”:“server-1.com server-1”},{“ip”:“2.2.2.2”,“aliases”:“server-2.com server-2”}]
So when the puppet agent runs against anything, the hosts file would like this:
1.1.1.1 server-1.com server-1
2.2.2.2 server-2.com server-2