fabfile.py

Function pupagent ::
This above fabfile.py is to install puppet agent using Function pupagent , along with version control (puppet 3.7) & to create a cert,  get it signed by puppet master,
,to auto sign certs you can also use  
autosign = /etc/puppet/autosign.conf  ### put it in  /etc/puppet/puppet.conf & keep hostname or * in file /etc/puppet/autosign.conf,restart puppetmaster.

Function pupmaster ::
ON puppet master Fabfile.py will add node definition in nodes.pp with nodename & some package definitions,(here we have used zabbix-agent) .

Once the certs are & node.pp are ready , puppet agent will pull catalog & zabbix-agent will get install on the agent server.