How to setup Puppet server?

As all the existing docs didn't help you it's quite unlikely that just writing a new one will work better for you.

Instead please follow the explanation given in the Ubuntu Server Guide and tell us what doesn't work for you and what additional questions you have.