mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
puppet: Remove unused 'builder' files.
These are leftover detritus from the "builder" host, which was removed
in 4c9a283542.
This commit is contained in:
committed by
Tim Abbott
parent
f5bb43aba2
commit
fb2d05f9e3
@@ -1,31 +0,0 @@
|
|||||||
Puppet::Type.newtype(:chroot) do
|
|
||||||
ensurable
|
|
||||||
newparam(:release) do
|
|
||||||
desc "The name of the release"
|
|
||||||
isnamevar
|
|
||||||
end
|
|
||||||
newparam(:distro) do
|
|
||||||
desc "The name of the Linux distribution (Debian, Ubuntu)"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
Puppet::Type.type(:chroot).provide(:chroot) do
|
|
||||||
def exists?
|
|
||||||
File.exists?("/var/lib/schroot/chroots/" + resource[:release] + "-amd64")
|
|
||||||
end
|
|
||||||
|
|
||||||
def create
|
|
||||||
if @resource[:distro] == "ubuntu"
|
|
||||||
mirror = "http://mirror.cc.columbia.edu/pub/linux/ubuntu/archive/"
|
|
||||||
else
|
|
||||||
mirror = "http://mirror.cc.columbia.edu/debian"
|
|
||||||
end
|
|
||||||
["amd64", "i386"].each { |x|
|
|
||||||
system("mk-sbuild #{@resource[:release]} --arch=#{x} --debootstrap-mirror=#{mirror} --distro=#{@resource[:distro]}")
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
def destroy
|
|
||||||
system("rm -rf /var/lib/schroot/chroots/#{@resource[:release]}-*")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
# Mail address where logs are sent to (mandatory, no default!)
|
|
||||||
$mailto = 'buildd-maintainers@zulip.net';
|
|
||||||
|
|
||||||
# Directory for chroot symlinks and sbuild logs. Defaults to the
|
|
||||||
# current directory if unspecified. (Deprecated.) Leave this unset;
|
|
||||||
# umt compare-bin relies upon this being unset.
|
|
||||||
#
|
|
||||||
# The above comment is a lie. ~ lfaraone
|
|
||||||
$build_dir='/home/zulip/ubuntu/build';
|
|
||||||
|
|
||||||
# Directory for writing build logs to
|
|
||||||
$log_dir="/home/zulip/ubuntu/logs";
|
|
||||||
|
|
||||||
# Override default sbuild dependency resolver (see 'man sbuild'). The default
|
|
||||||
# resolver (apt) mostly works ok but not always (eg, oneiric libreoffice).
|
|
||||||
# Use 'apt', 'aptitude', 'internal'. Can also use '--build-dep-resolver' with
|
|
||||||
# sbuild or '--sbuild-dep-resolver' with umt.
|
|
||||||
#$build_dep_resolver="apt";
|
|
||||||
|
|
||||||
# don't remove this, Perl needs it:
|
|
||||||
1;
|
|
||||||
Binary file not shown.
Reference in New Issue
Block a user