remove generate puppet function from bash script