move agent config out of if statement to allow puppet runs with cron