Geek on the road

open source, open knowledge

Puppet Apt-sources

| Comments

I started making my own puppet modules and I want to share apt-sources. It’s a pretty straightforward module to manage debian repositories in a simple way. If you’d like getting started with puppet keep reading.

Basically the module allows to define one or more repositories, besides of the area. In Debian we find three areas, main,contrib and non-free, though the last two are not part of Debian. In any case, you could find different areas when using non-official repositories. The module itself only updates the /etc/apt/sources.list file, you do not forget to update your system afterwards.

Liquid error: undefined method `Py_IsInitialized’ for RubyPython::Python:Module

And now we only need to define the template.

Liquid error: undefined method `Py_IsInitialized’ for RubyPython::Python:Module

And some examples:

Liquid error: undefined method `Py_IsInitialized’ for RubyPython::Python:Module

This approach is quick and useful, and does the work. Just a bunch of ideas to improve it: Keyring management, Management of areas in apt-sources.d, and apt-sources as a puppet type.

Comments