A recipe to upgrade OmniOS r151006 to r151008 (http://omnios.omniti.com/wiki.php/Upgrade_r151006_r151008)
| boot_environment = Mixlib::ShellOut.new("beadm list | grep NR").run_command.stdout | |
| file "/root/boot_environment-before-r151008-upgrade" do | |
| content boot_environment | |
| end | |
| package "pkg" do | |
| version "0.5.11,5.11-0.151006:20130731T192303Z" | |
| end | |
| package "web/ca-bundle" do | |
| version "5.11,5.11-0.151006:20130718T173831Z" | |
| end | |
| package "incorporation/jeos/omnios-userland" do | |
| version "11,5.11-0.151006" | |
| end | |
| package "runtime/perl/manual" do | |
| version "5.16.1,5.11-0.151006" | |
| end | |
| execute "pkg update --be-name=omnios-r151008" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
anahata0108 commentedDec 12, 2013
If you specify the
-Hoption tobeadm list, you can get a semicolon-separated list of fields to make getting the actual boot environment name much easier.