Skip to content

Commit

Permalink
split long slide on package management
Browse files Browse the repository at this point in the history
  • Loading branch information
atsaloli committed Feb 7, 2018
1 parent 74b2fb6 commit 7185796
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cf-primer.md
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,17 @@ The next attribute, `package_module`, specifies how CFEngine should interface wi

When `version` is left out CFEngine will only ever install or uninstall, but when `version` is set to a particular value like in the example shown, then CFEngine will upgrade **or downgrade** as needed to get that version.


# Package Management

bundle agent install {
packages:
"zsh"
policy => "present",
package_module => apt_get,
version => "4.3.10-4.1.el6";
}

If you only want to upgrade to the latest version, whatever that is, set `version => "latest"`.

And of course with `policy => "absent"` you can leave out `version` to ensure there isn't *any* version of the package present, or specify a version to blacklist (uninstall) just that particular version, if it's installed. (You can't use `"absent"` with `"latest"`.)
Expand Down

0 comments on commit 7185796

Please sign in to comment.