jepsen.os.smartos
Common tasks for SmartOS boxes.
install
(install pkgs)
Ensure the given packages are installed. Can take a flat collection of packages, passed as symbols, strings, or keywords, or, alternatively, a map of packages to version strings.
installed
(installed pkgs)
Given a list of pkgin packages (strings, symbols, keywords, etc), returns the set of packages which are installed, as strings.
installed-version
(installed-version pkg)
Given a package name, determines the installed version of that package, or nil if it is not installed.
installed?
(installed? pkg-or-pkgs)
Are the given packages, or singular package, installed on the current system?
setup-hostfile!
(setup-hostfile!)
Makes sure the hostfile has a loopback entry for the local hostname
time-since-last-update
(time-since-last-update)
When did we last run a pkgin update, in seconds ago