diff options
author | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2015-10-07 10:36:12 -0400 |
---|---|---|
committer | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2015-10-07 10:36:12 -0400 |
commit | 48bf4a390e7fc2d7fa948ca1c441785880f4c22b (patch) | |
tree | d45e7a8bb259dc737efe6fb073d6d38825a88021 /templates/Debian/preferences.erb | |
parent | cc53ce119f5b9b239bc1b8cdcaae6a668b8d1f8c (diff) |
Merge Debian squeeze, wheezy, jessie and sid preferences templates into one
Diffstat (limited to 'templates/Debian/preferences.erb')
-rw-r--r-- | templates/Debian/preferences.erb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/Debian/preferences.erb b/templates/Debian/preferences.erb new file mode 100644 index 0000000..37cf80d --- /dev/null +++ b/templates/Debian/preferences.erb @@ -0,0 +1,33 @@ +# This file is managed by puppet +# all local modifications will be overwritten + +Explanation: Debian <%= codename=scope.lookupvar('::debian_codename') %> +Package: * +Pin: release o=Debian,n=<%= codename %> +Pin-Priority: 990 + +<% if use_volatile=scope.lookupvar('apt::use_volatile') -%> +Explanation: Debian <%= codename %>-updates +Package: * +Pin: release o=Debian,n=<%= codename %>-updates +Pin-Priority: 990 +<%- end -%> + +<% if (use_lts=scope.lookupvar('apt::use_lts')) && (scope.lookupvar('::debian_lts') == "true") -%> +Explanation: Debian <%= codename %>-lts +Package: * +Pin: release o=Debian,n=<%= codename %>-lts +Pin-Priority: 990 +<%- end -%> + +<% if (next_codename=scope.lookupvar('::debian_nextcodename')) && (next_codename != "experimental") -%> +Explanation: Debian <%= next_codename %> +Package: * +Pin: release o=Debian,n=<%= next_codename %> +Pin-Priority: 2 +<%- end -%> + +Explanation: Debian fallback +Package: * +Pin: release o=Debian +Pin-Priority: -10 |