]> gitweb.fluxo.info Git - puppet-apt.git/commit
Refactor: manage .d directories when using sources_list and apt_conf
authorGabriel Filion <lelutin@gmail.com>
Mon, 9 Apr 2012 05:33:13 +0000 (01:33 -0400)
committerGabriel Filion <lelutin@gmail.com>
Mon, 9 Apr 2012 05:38:30 +0000 (01:38 -0400)
commit4d0ddd005795592f56496d8d39dc37ee86fac038
tree209b2fe420c7ddb258369668149c7f82637348c2
parent66433e665e611f305b0f65c61558a0ec8232da00
Refactor: manage .d directories when using sources_list and apt_conf

The .d directories are only managed by the main 'apt' class. However,
both 'sources_list' and 'apt_conf' defines depend on those directories.
So in practice, the defines have an implicit need for those directories
to be somehow managed.

Let's turn this into an explicit relation, and include the directories
in the defines.

This makes it possible to use both defines without having to include the
main 'apt' class. (maybe when using puppet apply?)

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
manifests/apt_conf.pp
manifests/dot_d_directories.pp [new file with mode: 0644]
manifests/init.pp
manifests/sources_list.pp