cookbooks / apt Goto Github PK
View Code? Open in Web Editor NEWA Chef cookbook for apt
Home Page: http://cookbooks.github.com/apt
A Chef cookbook for apt
Home Page: http://cookbooks.github.com/apt
apt_repository
should be able to modify existing repo source files.
apt_repository 'foo' do
uri 'http://example.org'
distribution 'stable'
components ['main']
action :add
end
apt_repository 'foo' do
uri 'http://example.org/some/completely/different/uri'
distribution 'bleeding_edge'
components ['nonfree']
action :add
end
Expected: This should create a foo
repository in /etc/apt/sources.list.d/
. This repository should have the long URI, the bleeding_edge
distribution and the nonfree
component.
Actual behaviour: apt_repository creates the first repository and completely ignores the second definition.
Would be useful to be able to nominate a fallback uri
and key_server
in case one is unavailable. Simple array of strings should suffice.
The readme says:
deb_src: whether or not to add the repository as a source repo as well
So, when setting "deb_src true", I would assume this adds deb-src as well as the deb entry. Instead, however, it switches to only adding the deb-src entry.
Not sure if the readme or the code is wrong, but these don't match.
As best I can work out the apt LWRP cannot handle the google-chrome ppa:
http://www.ubuntuupdates.org/ppas/8
apt_repository "google-chrome-stable" do
uri "http://dl.google.com/linux/chrome/"
#distribution 'deb' #node['lsb']['codename']
components ["main", "stable"]
key "https://dl-ssl.google.com/linux/linux_signing_key.pub"
action :add
end
Yields
Err http://dl.google.com lucid/stable Packages
404 Not Found
Err http://archive.canonical.com lucid Release.gpg
Could not connect to archive.canonical.com:80 (91.189.88.33). - connect (110: Connection timed out)
Ign http://archive.canonical.com lucid Release
Ign http://archive.canonical.com lucid/partner Packages
Ign http://archive.canonical.com lucid/partner Packages
Err http://archive.canonical.com lucid/partner Packages
Unable to connect to archive.canonical.com:http:
Fetched 13.8kB in 21s (656B/s)
STDERR: W: Failed to fetch http://archive.canonical.com/dists/lucid/Release.gpg Could not connect to archive.canonical.com:80 (91.189.88.33). - connect (110: Connection timed out)
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/lucid/main/binary-amd64/Packages.gz 404 Not Found
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/lucid/stable/binary-amd64/Packages.gz 404 Not Found
W: Failed to fetch http://archive.canonical.com/dists/lucid/partner/binary-amd64/Packages.gz Unable to connect to archive.canonical.com:http:
E: Some index files failed to download, they have been ignored, or old ones used instead.
---- End output of apt-get update ----
Keyservers tend to be offline from time to time and addidtional to iss #7 from hedgehog the apt-key adv should have a certain number of retries and a retry_delay
Somehting like:
execute "install-key #{new_resource.key}" do
command "apt-key adv --keyserver #{new_resource.keyserver} --recv #{new_resource.key}"
action :nothing
retries 3
retry_delay 5
end.run_action(:run)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.