Enforce the desired state with puppet apply

If you are satisfied with the outcome of a no-op run, you can start enforcing the changes with the puppet apply command.

Run puppet apply with the desired manifest file, such as: puppet apply c:\myfiles\file.pp

To see more details about what this command did, you can specify additional options, such as --trace, --debug, or --verbose, which can help you diagnose problematic code. If puppet apply fails, Puppet outputs a full stack trace.

Results
Puppet enforces the resource state you've described in file.pp, in this case guaranteeing that a file (c:\Temp\foo.txt) is present and has the contents This is some text in my file.