summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md56
1 files changed, 40 insertions, 16 deletions
diff --git a/README.md b/README.md
index 3343393..13990cc 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,8 @@
* [apt::key](#apt-key)
* [`apt::key::plain`](#apt-key-plain)
* [apt::upgrade_package](#apt-upgrade_package)
-* [Resources](#ressources)
+ * [apt::dpkg_statoverride](#apt-dpkg_statoverride)
+* [Resources](#resources)
* [File\['apt_config'\]](#fileapt_config)
* [Exec\['apt_updated'\]](#execapt_updated)
* [Tests](#tests)
@@ -256,25 +257,19 @@ Example usage:
If this variable is set the default repositories list ("main contrib non-free")
is overriden.
-### custom_preferences
+### manage_preferences
- For historical reasons (Debian Lenny's version of APT did not support the use
- of the `preferences.d` directory for putting fragments of 'preferences'), this
- module will manage a default generic apt/preferences file with more
- recent releases pinned to very low values so that any package
- installation will not accidentally pull in packages from those suites
- unless you explicitly specify the version number. This file will be
- complemented with all of the preferences_snippet calls (see below).
+ Setting this variable to `false` will delete all the files in `preferences.d`
+ managed by Puppet. By default, this parameter is set to `true`.
- If the default preferences template doesn't suit your needs, you can create a
- template located in your `site_apt` module, and set custom_preferences with the
- content (eg. custom_preferences => template('site_apt/preferences') )
+### custom_preferences
- Setting this variable to false before including this class will force the
- `apt/preferences` file to be absent:
+ If the default preferences template doesn't suit your needs, you can create a
+ template located in your `apt` module, and set `custom_preferences` to your
+ preferred template:
class { 'apt':
- custom_preferences => false,
+ custom_preferences => 'apt/my_super_template.erb',
}
### custom_sources_list
@@ -628,7 +623,36 @@ to their latest (also, only if they are installed):
}
-# Resources<a name="ressources"></a>
+## apt::dpkg_statoverride<a name="apt-dpkg_statoverride"></a>
+
+Override ownership and mode of files. This define takes the following parameters:
+
+[*name*]
+ Implicit parameter.
+ File path.
+
+[*user*]
+ User name (or user id if prepended with '#').
+
+[*group*]
+ Group name (or group id if prepended with '#').
+
+[*mode*]
+ File mode, in octal
+
+[*ensure*]
+ Whether to add or delete this configuration
+
+
+Example usage:
+
+ apt::dpkg_statoverride { '/var/log/puppet':
+ user => 'puppet',
+ group => 'puppet',
+ mode => '750',
+ }
+
+# Resources<a name="resources"></a>
## File['apt_config']<a name="file-apt-config"></a>