From 7efd1bdbf731d1593e70be5105fd9d178bad54f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis-Philippe=20V=C3=A9ronneau?= Date: Fri, 24 Feb 2017 15:19:40 -0500 Subject: add new preferences.d templates --- templates/Debian/fallback.erb | 7 +++++++ templates/Debian/lts.erb | 7 +++++++ templates/Debian/nextcodename.erb | 7 +++++++ templates/Debian/stable.erb | 7 +++++++ templates/Debian/volatile.erb | 7 +++++++ 5 files changed, 35 insertions(+) create mode 100644 templates/Debian/fallback.erb create mode 100644 templates/Debian/lts.erb create mode 100644 templates/Debian/nextcodename.erb create mode 100644 templates/Debian/stable.erb create mode 100644 templates/Debian/volatile.erb (limited to 'templates/Debian') diff --git a/templates/Debian/fallback.erb b/templates/Debian/fallback.erb new file mode 100644 index 0000000..1c75e83 --- /dev/null +++ b/templates/Debian/fallback.erb @@ -0,0 +1,7 @@ +# This file is managed by puppet +# all local modifications will be overwritten + +Explanation: Debian fallback +Package: * +Pin: release o=Debian +Pin-Priority: -10 diff --git a/templates/Debian/lts.erb b/templates/Debian/lts.erb new file mode 100644 index 0000000..74281b6 --- /dev/null +++ b/templates/Debian/lts.erb @@ -0,0 +1,7 @@ +# This file is managed by puppet +# all local modifications will be overwritten + +Explanation: Debian <%= codename %>-lts +Package: * +Pin: release o=Debian,n=<%= codename %>-lts +Pin-Priority: 990 diff --git a/templates/Debian/nextcodename.erb b/templates/Debian/nextcodename.erb new file mode 100644 index 0000000..d4f9a40 --- /dev/null +++ b/templates/Debian/nextcodename.erb @@ -0,0 +1,7 @@ +# This file is managed by puppet +# all local modifications will be overwritten + +Explanation: Debian <%= next_codename %> +Package: * +Pin: release o=Debian,n=<%= next_codename %> +Pin-Priority: 2 diff --git a/templates/Debian/stable.erb b/templates/Debian/stable.erb new file mode 100644 index 0000000..df84fce --- /dev/null +++ b/templates/Debian/stable.erb @@ -0,0 +1,7 @@ +# 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 diff --git a/templates/Debian/volatile.erb b/templates/Debian/volatile.erb new file mode 100644 index 0000000..1654abe --- /dev/null +++ b/templates/Debian/volatile.erb @@ -0,0 +1,7 @@ +# This file is managed by puppet +# all local modifications will be overwritten + +Explanation: Debian <%= codename %>-updates +Package: * +Pin: release o=Debian,n=<%= codename %>-updates +Pin-Priority: 990 -- cgit v1.2.3 From 0c189c8bdbbcc46a42f10ddd700d790f40834661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis-Philippe=20V=C3=A9ronneau?= Date: Fri, 24 Feb 2017 15:30:26 -0500 Subject: fix variable name --- templates/Debian/nextcodename.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/Debian') diff --git a/templates/Debian/nextcodename.erb b/templates/Debian/nextcodename.erb index d4f9a40..0810412 100644 --- a/templates/Debian/nextcodename.erb +++ b/templates/Debian/nextcodename.erb @@ -1,7 +1,7 @@ # This file is managed by puppet # all local modifications will be overwritten -Explanation: Debian <%= next_codename %> +Explanation: Debian <%= debian_nextcodename %> Package: * -Pin: release o=Debian,n=<%= next_codename %> +Pin: release o=Debian,n=<%= debian_nextcodename %> Pin-Priority: 2 -- cgit v1.2.3 From f447904e47c14f287283d8a3de9fb17033ccafdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis-Philippe=20V=C3=A9ronneau?= Date: Fri, 24 Feb 2017 15:44:21 -0500 Subject: fix variable name (bis) --- templates/Debian/lts.erb | 4 ++-- templates/Debian/stable.erb | 4 ++-- templates/Debian/volatile.erb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'templates/Debian') diff --git a/templates/Debian/lts.erb b/templates/Debian/lts.erb index 74281b6..3ed2f51 100644 --- a/templates/Debian/lts.erb +++ b/templates/Debian/lts.erb @@ -1,7 +1,7 @@ # This file is managed by puppet # all local modifications will be overwritten -Explanation: Debian <%= codename %>-lts +Explanation: Debian <%= debian_codename %>-lts Package: * -Pin: release o=Debian,n=<%= codename %>-lts +Pin: release o=Debian,n=<%= debian_codename %>-lts Pin-Priority: 990 diff --git a/templates/Debian/stable.erb b/templates/Debian/stable.erb index df84fce..0acfc8f 100644 --- a/templates/Debian/stable.erb +++ b/templates/Debian/stable.erb @@ -1,7 +1,7 @@ # This file is managed by puppet # all local modifications will be overwritten -Explanation: Debian <%= codename=scope.lookupvar('::debian_codename') %> +Explanation: Debian <%= debian_codename %> Package: * -Pin: release o=Debian,n=<%= codename %> +Pin: release o=Debian,n=<%= debian_codename %> Pin-Priority: 990 diff --git a/templates/Debian/volatile.erb b/templates/Debian/volatile.erb index 1654abe..5014e01 100644 --- a/templates/Debian/volatile.erb +++ b/templates/Debian/volatile.erb @@ -1,7 +1,7 @@ # This file is managed by puppet # all local modifications will be overwritten -Explanation: Debian <%= codename %>-updates +Explanation: Debian <%= debian_codename %>-updates Package: * -Pin: release o=Debian,n=<%= codename %>-updates +Pin: release o=Debian,n=<%= debian_codename %>-updates Pin-Priority: 990 -- cgit v1.2.3 From 4a261733172f2699b217ea6d43ec9ee09a32c72d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis-Philippe=20V=C3=A9ronneau?= Date: Fri, 24 Feb 2017 18:17:34 -0500 Subject: define variables in templates with the right style --- templates/Debian/lts.erb | 4 ++-- templates/Debian/nextcodename.erb | 4 ++-- templates/Debian/stable.erb | 4 ++-- templates/Debian/volatile.erb | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'templates/Debian') diff --git a/templates/Debian/lts.erb b/templates/Debian/lts.erb index 3ed2f51..a77835e 100644 --- a/templates/Debian/lts.erb +++ b/templates/Debian/lts.erb @@ -1,7 +1,7 @@ # This file is managed by puppet # all local modifications will be overwritten -Explanation: Debian <%= debian_codename %>-lts +Explanation: Debian <%= @debian_codename %>-lts Package: * -Pin: release o=Debian,n=<%= debian_codename %>-lts +Pin: release o=Debian,n=<%= @debian_codename %>-lts Pin-Priority: 990 diff --git a/templates/Debian/nextcodename.erb b/templates/Debian/nextcodename.erb index 0810412..2bec9ad 100644 --- a/templates/Debian/nextcodename.erb +++ b/templates/Debian/nextcodename.erb @@ -1,7 +1,7 @@ # This file is managed by puppet # all local modifications will be overwritten -Explanation: Debian <%= debian_nextcodename %> +Explanation: Debian <%= @debian_nextcodename %> Package: * -Pin: release o=Debian,n=<%= debian_nextcodename %> +Pin: release o=Debian,n=<%= @debian_nextcodename %> Pin-Priority: 2 diff --git a/templates/Debian/stable.erb b/templates/Debian/stable.erb index 0acfc8f..be05e51 100644 --- a/templates/Debian/stable.erb +++ b/templates/Debian/stable.erb @@ -1,7 +1,7 @@ # This file is managed by puppet # all local modifications will be overwritten -Explanation: Debian <%= debian_codename %> +Explanation: Debian <%= @debian_codename %> Package: * -Pin: release o=Debian,n=<%= debian_codename %> +Pin: release o=Debian,n=<%= @debian_codename %> Pin-Priority: 990 diff --git a/templates/Debian/volatile.erb b/templates/Debian/volatile.erb index 5014e01..47ec2d8 100644 --- a/templates/Debian/volatile.erb +++ b/templates/Debian/volatile.erb @@ -1,7 +1,7 @@ # This file is managed by puppet # all local modifications will be overwritten -Explanation: Debian <%= debian_codename %>-updates +Explanation: Debian <%= @debian_codename %>-updates Package: * -Pin: release o=Debian,n=<%= debian_codename %>-updates +Pin: release o=Debian,n=<%= @debian_codename %>-updates Pin-Priority: 990 -- cgit v1.2.3