If i assume that your second code is the puppet config then i have a logical explaination, if the error and log files were create before, you can try this
I faced similar issue while restarting Nginx and found it to be a cause of SeLinux. Be sure to give a try after either disabling SeLinux or temporarily setting it to Permissive mode using below command: