Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(Puppet is an open-source software configuration management tool. It runs on man

ID: 3590179 • Letter: #

Question

(Puppet is an open-source software configuration management tool. It runs on many Unix-like systems and includes its own declarative language to describe system configuration. The user describes system resources and their state using Puppet's declarative language.)

Using Puppet's declarative language write puppet code so that whenever the agent runs on a client, output the message (on the client) “Agent run starting at <time> ”.

Explanation / Answer

$ echo -e '#!/bin/bash /bin/date -I ' >/tmp/dater $ chmod 755 /tmp/dater $ dt=generate("/tmp/dater") $ bundle exec puppet apply -e 'notify{"Agent run starting at $dt"}'