[Spce-user] Suggestion: install extra repositories in /etc/apt/sources.list.d

Thilo Bangert thilo.bangert at gmail.com
Tue May 15 04:48:28 EDT 2012


On Monday, May 14, 2012 10:42:33 PM you wrote:
> Hi,
> 
> * Thilo Bangert [Thu May 10, 2012 at 05:14:58PM +0200]:
> > we use puppet extensively, but also want to use sip.provider ce. What
> > follows are a number of suggestions, that would make life easier for
> > someone wanting to install the ngcp in a managed environment.
> > 
> > the ngcp-installer installs its own /etc/apt/sources.list in order to give
> > the system access to the sipwise provided repositories. This also
> > overrides any configuration the system may have had earlier on.
> > 
> > debian provides the /etc/apt/sources.list.d directory specifically for the
> > purpose of adding more repositories without interfering with the exsisting
> > setup.
> > 
> > It would be nice if the ngcp-installer could add the sipwise specific
> > repositories as entries in /etc/apt/sources.list.d dir instead of
> > overwriting the (on purpose non-)existing /etc/apt/sources.list.
> 
> We implemented your feature request.

awesome!

> 
> During fresh installation via ngcp-installer an existing
> /etc/apt/sources.list file will be renamed to
> /etc/apt/sources.list.disabled. All the debian.org specific stuff we
> used to ship inside /etc/apt/sources.list is provided through
> /etc/apt/sources.list.d/debian.list and all the Sipwise specific
> repositories are provided through
> /etc/apt/sources.list.d/sipwise.list with the new code.

the split into two different files is a step in the right direction!
but what is the reason that you need to provide the debian sources at all? 
they should be all setup on a fresh install, no?

would it not be enough to add sipwise.list to /etc/apt/sources.list.d/ ?

in our setup, we simply delete /etc/apt/souces.list and provide the debian 
repositories in files in /etc/apt/sources.list.d ourselves. if i then would 
run the installer, i'd get the debian repos multiple times...

the reason i want to use our own debian repo configuration is that we use a 
private mirror. the current solution would work for us though, since we can 
always make sure that the file /etc/apt/sources.list.d/debian.list doesnt 
exist.

thanks
kind regards
Thilo

> 
> The new files (debian.list + sipwise.list) provide markers so we can
> detect those files during upgrades. As long as those markers are
> present any upgrade scripts will take care of them automatically. If
> those markers aren't present (e.g. because a user decided to replace
> debian.list with his own version of the file manually or using
> puppet) the file won't be touched and the user is expected to
> provide sane settings.
> 
> We'd appreciate your feedback if this workflow provides what you'd
> like to get.
> 
> regards,
> -mika-




More information about the Spce-user mailing list