Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 2.24 KB

File metadata and controls

61 lines (42 loc) · 2.24 KB

pufctl diff

diff finds the difference between two Puppetfiles

Synopsis

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]

Options

      --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

Options inherited from parent commands

      --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

SEE ALSO

  • pufctl - pufctl is a multitool for Puppetfiles
Auto generated by spf13/cobra on 24-Aug-2020