- From: Thomas Preißler <
>
- To: <
>
- Subject: [chef] chef 12 ignores default_release for apt_package
- Date: 10 Dec 2014 16:16:00 +0100
Hey!
I just figured out an issue after upgrading to chef 12. When specifying a default_release option for apt_package this option will be ignored.
Small example:
apt_package "haveged" do
default_release "wheezy-backports"
end
I would expect that chef install 1.9.1-1~bpo70+1, but it actually installs 1.4-4. Using chef 11.16 this works as expected and installs haveged from backports. Please have a look at the attachment for a small recipe that illustrates the issue.
Thanks!
Thomas
file "/etc/apt/sources.list" do
content <<-EOF
deb http://ftp.de.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
deb http://ftp.de.debian.org/debian/ wheezy-updates main
deb http://ftp.de.debian.org/debian/ wheezy-backports main contrib non-free
EOF
notifies :run, "execute[apt-get update]", :immediately
end
execute "apt-get update" do
command "apt-get update"
action :nothing
end
apt_package "haveged" do
default_release "wheezy-backports"
end
- [chef] chef 12 ignores default_release for apt_package, Thomas Preißler, 12/10/2014
Archive powered by MHonArc 2.6.16.