Skip to content

Instantly share code, notes, and snippets.

@gbkersey
Created January 29, 2013 20:40
Show Gist options
  • Save gbkersey/4667602 to your computer and use it in GitHub Desktop.
Save gbkersey/4667602 to your computer and use it in GitHub Desktop.
check to see if a package is installed (rpm based)
packages:
"gpg-pubkey"
comment => "Check to see if gpg key for virtualbox repo is installed",
package_policy => "verify",
package_version => "98ab5139-4bf2d0b0",
package_method => rpm_version("/dev/null"),
classes => if_notkept("install_virtualbox_repo_key");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment