Autorequires
Certain resource relationships are ubiquitous. When the relationship is implied, a mechanism was developed to reduce resource ordering errors. This mechanism is called autorequire. A list of autorequire relationships is given in the type reference documentation at https://docs.puppetlabs.com/references/latest/type.html.
When troubleshooting, you should know that the following autorequire relationships exist:
- A
cron
resource will autorequire the specified user. Anexec
resource will autorequire both the working directory of theexec
as afile
resource and theuser
as which theexec
runs. - A
file
resource will autorequire its owner and group. - A mount will autorequire the mounts that it depends on (a mount resource of
/apps/myapp
will autorequire ...
Get Troubleshooting Puppet 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.