Lab – overview of relationships, ordering, and scope
In this lab, we will provide some code to review and run to ensure the concepts discussed are understood. All the code can be found at https://github.com/PacktPublishing/Puppet-8-for-DevOps-Engineers/tree/main/ch06.
The code at https://github.com/PacktPublishing/Puppet-8-for-DevOps-Engineers/blob/main/ch06/lab6_1.pp currently has no dependencies. To meet the following requirements, the code needs to be adjusted accordingly:
- The
install
class and all its resources should run beforeconfig
andservice
- The
config
class and all its resources should run beforeservice
- The
service
class and all its resources should be refreshed if any resource in theconfig
class is updated - The
httpd
package should be installed before theexampleapp
package - The
exampleuser
user should be created after theexamplegroup
group - The
/etc/exampleapp/
directory should be created after theexampleuser
user and theexamplegroup...