diff finds the difference between two Puppetfiles
The pufctl diff command compares Puppetfiles at the parsed object level to find differences in them. You must supply the path to at least one Puppetfile. If only one Puppetfile is specified, the configured default Puppetfile will be used as the first Puppetfile in the comparison.
Meaningful exit codes have been added to the diff command to assist with programatic implementations of this command (such as use in CI/CD systems).
Exit Codes:
0: No difference between the Puppetfiles
3: Only the first Puppetfile has differences
4: Only the second Puppetfile has differences
5: Differences in both Puppetfiles
pufctl diff [Puppetfile] [<optional> Puppetfile] [flags]
--branch-one string The branch for the first Puppetfile (if using a Git source) (default "production")
--branch-two string The branch for the second Puppetfile (if using a Git source) (default "development")
--diff-meta Include meta statements (comments, etc.) in diff
-h, --help help for diff
--config string path to config file (default "/home/sharkdeth/.pufctl.yaml")
-y, --confirm skip all confirmation checks
--forge-api string Puppet Forge API URL (default "https://forgeapi-cdn.puppet.com")
-o, --out-file string Write command output or changed Puppetfile to specified file
--pass string Forge / Git authentication password
-p, --puppetfile string path to the Puppetfile to parse (default "./Puppetfile")
--puppetfile-branch string The branch to use for a Puppetfile from Git (default "production")
-s, --show Show Puppetfile after each command
--ssh-key string Path to your SSH key (default "/home/sharkdeth/.ssh/id_rsa")
--token string Forge / Git authentication token
--user string Forge / Git authentication username
-v, --verbose verbose logging
- pufctl - pufctl is a multitool for Puppetfiles