From b680f25039a0d2689e34025a778084ad54194338 Mon Sep 17 00:00:00 2001 From: Martin Zobel-Helas Date: Fri, 18 Jan 2013 23:54:48 +0100 Subject: [PATCH] wheezy Signed-off-by: Martin Zobel-Helas --- modules/ganeti2/manifests/init.pp | 3 +++ .../templates/instance-debootstrap/variants.list.erb | 1 + .../instance-debootstrap/variants/dsa-wheezy.conf.erb | 10 ++++++++++ 3 files changed, 14 insertions(+) create mode 100644 modules/ganeti2/templates/instance-debootstrap/variants/dsa-wheezy.conf.erb diff --git a/modules/ganeti2/manifests/init.pp b/modules/ganeti2/manifests/init.pp index bacb78cf..743a29d5 100644 --- a/modules/ganeti2/manifests/init.pp +++ b/modules/ganeti2/manifests/init.pp @@ -30,6 +30,9 @@ class ganeti2 { '/etc/ganeti/instance-debootstrap/variants/dsa.conf': content => template('ganeti2/instance-debootstrap/variants/dsa.conf.erb'), ; + '/etc/ganeti/instance-debootstrap/variants/dsa-wheezy.conf': + content => template('ganeti2/instance-debootstrap/variants/dsa-wheezy.conf.erb'), + ; '/etc/ganeti/instance-debootstrap/hooks/00-dsa-configure-networking': content => template('ganeti2/instance-debootstrap/hooks/00-dsa-configure-networking.erb'), mode => '0555', diff --git a/modules/ganeti2/templates/instance-debootstrap/variants.list.erb b/modules/ganeti2/templates/instance-debootstrap/variants.list.erb index 58de0a21..0e6f5b4a 100644 --- a/modules/ganeti2/templates/instance-debootstrap/variants.list.erb +++ b/modules/ganeti2/templates/instance-debootstrap/variants.list.erb @@ -1,2 +1,3 @@ default dsa +dsa-wheezy diff --git a/modules/ganeti2/templates/instance-debootstrap/variants/dsa-wheezy.conf.erb b/modules/ganeti2/templates/instance-debootstrap/variants/dsa-wheezy.conf.erb new file mode 100644 index 00000000..6a76b9ee --- /dev/null +++ b/modules/ganeti2/templates/instance-debootstrap/variants/dsa-wheezy.conf.erb @@ -0,0 +1,10 @@ +<%= +case scope.lookupvar('::cluster') + when "ganeti2.debian.org" then 'MIRROR="http://mirror-ubc.debian.org/debian"' + when "ganeti-osuosl.debian.org" then 'MIRROR="http://debian.osuosl.org/debian"' + when "ganeti3.debian.org" then 'MIRROR="http://mirror.ayous.org/debian"' + else 'MIRROR="http://http.debian.net/debian"' +end +%> +ARCH="amd64" +SUITE="wheezy" -- 2.39.2