aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
AgeCommit message (Collapse)Author
2010-10-25Fix apt::preferences::absentGabriel Filion
Currently, setting the $custom_preferences variable to false fails because of the /etc/apt/preferences concatenated_file being re-defined. Fix this by setting dependencies on the resource only when we expect to create the /etc/apt/preferences file. Also, since there is no "ensure" parameter to concatenated_file, use a simple file resource to ensure that it is removed. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-10-25Add $main_apt_sourceGabriel Filion
Currently, it's either we use the default source that's hardcoded in the sources.list template or we redefine entirely this template. Make it easier to just change the URL of the apt source while using the rest of the default template by adding a $main_apt_source variable. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-10-25Remove the now unused $apt_clean variableGabriel Filion
This variable was deprecated in favor of using a list of file sources. to change the value of the 'clean' property, you can either define a file '03clean' in a site-apt module, or a per-host '$fqdn/03clean' file in the same site-apt module. Also, move the moduledir stuff below nearer to where it's actually used. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-10-25rename things for easier understandingGabriel Filion
remove the use of _snippet in names (except for preferences_snippet) so that they represent directly a resource name. rename custom_sources_template to sources_list. modify sources_list to make it more flexible (gives the opportunity to provide sources or content). this changes its behaviour in that the name is now the name of the file in sources.list.d rename proxy-client to proxy_client to use the same standard for its name as the other classes. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-10-25refactor: simplify and remove inline contentGabriel Filion
Simplifications: make apt_conf_snippet repeat less code, make code that generates sources.list more concise. Remove all inline content in favor of templates and static files. The ability to include sources for static files was needed for the main 'preferences' file, so it was added to the preferences_snippet define. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-10-24Add apt_conf_snippet and use it where possibleGabriel Filion
With the new define, it's easy to add an apt.conf snippet in apt.conf.d It accepts either 'sources' to get a static file or 'content' to define content inline or with the help of a template. Put it to use where we create files in apt.conf.d Finally, fix the dependancy to the apt_config file (however, I don't see the need for this dependancy) Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-10-24Move default_sources_list into apt classGabriel Filion
The contents of the file default_sources_list.pp is used in only one place. Remove the file and move its contents inside the apt class in order to have one less useless depth level. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-10-22merged with immerda/masternadir
2010-10-21Merge remote branch 'lelutin/master'mh
Integrate no custom preference into our new way to manage the preferences. Conflicts: README manifests/default_preferences.pp manifests/init.pp
2010-10-18Make it possible to ensure preferences is absentGabriel Filion
The current code makes it mandatory to have a file /etc/apt/preferences present. In the event that this file is empty or contains a space, apt-get update cannot execute. Add a case with the special value "false" that ensures the file does not exist. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-10-18Remove unnecessary execGabriel Filion
When $custom_key_dir has not been assigned any value, a useless exec of /bin/true is run. Remove this by using 'if' instead of 'case'. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-10-17Make $apt_clean effective in all casesGabriel Filion
The file "/etc/apt/apt.conf.d/from_puppet" is currently only defined when $custom_sources_list is not used (it is declared in default_preferences). Bring this file up in the apt class so that using custom sources doesn't remove its addition. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-10-17Merge remote branch 'riseup/master'Gabriel Filion
Conflicts: manifests/init.pp
2010-10-17Need to update APT lists after apt.conf.d changes.intrigeri
2010-10-17No need to update APT lists when pinning changes (bis).intrigeri
2010-10-17Fix one more relationship.intrigeri
2010-10-17No need to refresh APT lists after changes to pinning preferences.intrigeri
2010-10-17Fix indentation.intrigeri
2010-10-17Fix relationships.intrigeri
2010-10-17minor improvements, especially do not refresh apt every runmh
2010-10-17introduce preferences snippetmh
Now, we have the possibility to externally add snippes, so that we can preferences for packages that are for example only in backports or unstable.
2010-10-17Support choosing a custom Ubuntu mirror.intrigeri
2010-10-17Use append_if_no_such_line instead of line.intrigeri
2010-10-17Migrate config file to line-editing.intrigeri
This allows other modules to add lines there too.
2010-10-17Backward compatibility: ensure old renamed file is absent.intrigeri
2010-10-17Bring /etc/apt/apt.conf.d/99from_puppet to init.intrigeri
APT configuration has (unfortunately) nothing to do with APT preferences.
2010-10-17Support $apt_repos for Ubuntu as well.intrigeri
2010-10-17Merge remote branch 'nadir/master' into wipintrigeri
Conflicts: manifests/default_preferences.pp manifests/default_sources_list.pp manifests/init.pp templates/Debian/sources.list.deb-src.erb templates/Debian/sources.list.erb templates/Debian/sources.list.volatile.erb templates/Ubuntu/sources.list.erb
2010-10-17Rename $apt_use_volatile to $apt_volatile_enabled.intrigeri
This will help merging with Nadir's changes.
2010-10-17Manage a /etc/apt/apt.conf.d/99-puppet file.root
2010-10-10Add support for customizing the repos list (main, contrib, etc.)intrigeri
The templates already made use of it, but the code didn't set a default value.
2010-10-09re-added apt::custom_sources_template to deploy custom sources.list.d/xyz.listnadir
2010-10-06Allow specifying custom mirrors for every supported archive.intrigeri
2010-10-06Add opt-in support for next Debian release sources.intrigeri
2010-10-06Add opt-in support for deb-src.intrigeri
2010-10-06Add opt-in support for Debian Volatile.intrigeri
2010-10-06Reindent for consistency with previous work.intrigeri
2010-10-06Remove unneeded dependencies.intrigeri
2010-10-06Initialize $release, $next_release, $codename, $next_codename in init.pp.intrigeri
2010-09-15improve decision handling, remove unnecessary execmh
2010-09-08backports.org has merged with the normal debian archive, the apt source ↵Matt Taggart
changed and we don't need a separate apt-key for it now
2010-09-02clean up the multiple File subscribesMicah Anderson
2010-09-02quote all aliases to be consistentMicah Anderson
2010-08-10improve exec namingmh
2010-08-09fix relationmh
2010-08-07remove unnecessary fileserver variable (#2460)mh
2010-06-28set loglevel to info so we don't pollute the logsmh
2010-05-09adjust new module dir pathmh
2009-11-14fix preseeding dir pathmh
2009-11-02change pending module file resources to new 0.25 stylemh