Deferring a function Deferring a function allows you to run code on the agent during a Puppet run. Deferred functions overviewDefer a function to retrieve a value on the agent. Using a template with Deferred values Templates are rendered on the primary server during catalog compilation. However, this won't work with deferred functions because their values aren't known at compile time. Instead, you need to defer the template rendering. Write a deferred function to store secretsUse the Deferred type to create a function that you add to a module to redact sensitive information. Integrations with secret storesThe Forge already hosts some community modules that provide integrations with secret stores.