-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

LEARNING PUPPET
By :

We can apply this resource to the --execute
(or -e
) puppet apply command, which will remove the user Elisa
from the system.
As Elisa
no longer exists in the system, let's change the ensure
attribute value to 'present'
so that Puppet can create the user Elisa
:
puppet apply --execute "user { 'Elisa': ensure => 'present', }"
Puppet will display the following output on the screen:
As you might have noticed, the output of the puppet apply
command looks different from the puppet resource
command that we used earlier to create user Elisa
. Let's examine the output line by line:
Notice: Compiled catalog for learning.puppetlabs.vm in environment production in 0.12 seconds
The Puppet report shows that the manifest was compiled successfully in 0.12 seconds. The manifest was compiled for the learning.puppetlabs.vm
Puppet host. The learning.puppetlabs.vm
Puppet host is a member of the Puppet environment called production.
Notice: /Stage[main]/Main/User[Elisa]/ensure: created
The Puppet report shows that the user Elisa
was created successfully on the system.
Notice: Finished catalog run in 0.22 seconds
The Puppet report shows that the Puppet run was completed successfully in 0.22 seconds.
The preceding three lines relate to the following different stages of the Puppet run:
Change the font size
Change margin width
Change background colour