Puppet resource
Versions of Puppet from 2.6 and later (the current release is 3.6) use the single binary puppet with subcommands for specific tasks. The earlier version had separate binaries for all of the subcommands. In the previous set of commands, we used the traditional CentOS syntax to start the Puppet master and then to enable the service for autostart; we could achieve the same result using the /usr/bin/puppet
command along with the resource
subcommand:
# puppet resource Service puppetmaster enable=true ensure=running
With this command, we direct our attention to the puppetmaster
service, enable it for autostart (enable=true
), and start it if required (ensure=running
). This represents the very essence of how Puppet works. Of course, to ...
Get CentOS System Administration Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.