Ask Your Question
1

why doesn't the log show every step?

asked 2015-09-25 13:24:57 -0600

david.thornton@scalar.ca gravatar image

updated 2015-09-25 15:07:39 -0600

ramindk gravatar image

I'm busy ironing out the bugs in my manifests. I'm trying to "follow the flow", But the log isn't showing every step.

Sometimes I get "skipping step , failed dependencies", sometimes not. When I don't get those messages, I don't get any "I did step X Successfully", but sometimes I do.

Here's what I'm running at command line:

puppet agent --no-daemonize -vo --logdest c:\puppet_agent.log --graph

note: -v verbose.

PS C:\Users\Administrator> puppet -V
3.8.3

... yes, windows.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-09-25 15:13:45 -0600

ramindk gravatar image

Puppet will log when

  • something changes
  • something fails

If neither of those happen you'll simply see the daemon printing a catalog finished statement as shown below. In your case the first run successfully makes changes to the system, but with some failures. Both the changes and failures are logged. In the second run, you won't see logs of previous successes because Puppet has already determined that nothing needs to be done.

Sep 25 08:22:18 ip-10-213-128-170 puppet-agent[6990]: Finished catalog run in 6.11 seconds

If you want to see every action the Puppet agent is taking, you'll need to add --debug to your puppet agent command.

edit flag offensive delete link more

Comments

1

+1 Windows points if you want to run debug and just grab the results from the event log, since they are usually there anyways: Get-EventLog -LogName Application -Source Puppet (optionally -EntryType Warning,Error)

souldonut gravatar imagesouldonut ( 2015-09-25 16:56:47 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-09-25 13:24:57 -0600

Seen: 109 times

Last updated: Sep 25 '15