Giter VIP home page Giter VIP logo

Comments (5)

spuder avatar spuder commented on July 23, 2024 2

😳 This works

apt_repository 'sbt' do
  uri 'https://dl.bintray.com/sbt/debian'
  key '642AC823'
  components ['/']
  keyserver 'keyserver.ubuntu.com'
  action :add
end

from apt.

nabarunchatterjee avatar nabarunchatterjee commented on July 23, 2024

But how to make something like this work

apt_repository "elasticsearch-#{esversion}" do
  uri "http://packages.elastic.co/elasticsearch/#{esversion}/debian"
  components ['stable','main']
  key 'https://packages.elastic.co/GPG-KEY-elasticsearch'
  action :add
end

I still get quotes around the uri.

Moreover I get 'trusty'(without quotes) after the uri.

The desired result is
deb http://packages.elastic.co/elasticsearch/1.7/debian stable main

what I get is
deb "http://packages.elastic.co/elasticsearch/1.7/debian" trusty stable main

from apt.

rmoriz avatar rmoriz commented on July 23, 2024

@nabarunchatterjee stable is not a component. you don't have a distribution specified => current distribution name. Quotes are irrelevant.

Also: man sources.list, read https://github.com/chef-cookbooks/apt#readme

from apt.

ericgoedtel avatar ericgoedtel commented on July 23, 2024

Quotes definitely matter because removing them fixes the problem for me just as it fixed it for the original reporter.

from apt.

ericgoedtel avatar ericgoedtel commented on July 23, 2024

@nabarunchatterjee you should check out the official Elasticsearch cookbook. It installs the repo like this:

apt_repository 'elastic-5.x' do
  uri 'https://artifacts.elastic.co/packages/5.x/apt'
  components ['main']
  distribution 'stable'
  action :nothing # :create, :delete
end

So what @rmoriz said is correct: stable is not component. its a distribution.

from apt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.