2013-11-05 21:21:00 +01:00
|
|
|
class zulip_internal::builder {
|
|
|
|
include zulip_internal::base
|
2013-08-13 16:12:24 +02:00
|
|
|
|
|
|
|
$buildd_packages = [
|
|
|
|
"apt-spy",
|
|
|
|
"netselect-apt",
|
|
|
|
"ubuntu-dev-tools",
|
|
|
|
"schroot",
|
|
|
|
"sbuild",
|
|
|
|
]
|
|
|
|
package { $buildd_packages: ensure => "installed" }
|
|
|
|
|
2013-10-04 19:19:57 +02:00
|
|
|
file { "/home/zulip/.sbuildrc":
|
2013-08-13 16:12:24 +02:00
|
|
|
require => Package[sbuild],
|
|
|
|
ensure => file,
|
2013-10-04 20:23:48 +02:00
|
|
|
owner => "zulip",
|
|
|
|
group => "zulip",
|
2013-08-13 16:12:24 +02:00
|
|
|
mode => 644,
|
2013-11-05 21:21:00 +01:00
|
|
|
source => "puppet:///modules/zulip_internal/builder/sbuildrc",
|
2013-08-13 16:12:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
file { "/usr/share/keyrings/ubuntu-archive-keyring.gpg":
|
|
|
|
ensure => file,
|
|
|
|
mode => 644,
|
2013-11-05 21:21:00 +01:00
|
|
|
source => "puppet:///modules/zulip_internal/builder/ubuntu-archive-keyring.gpg",
|
2013-08-13 16:12:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
file { "/root/.sbuildrc":
|
|
|
|
ensure => 'link',
|
2013-10-04 19:19:57 +02:00
|
|
|
target => '/home/zulip/.sbuildrc',
|
2013-08-13 16:12:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
exec { "adduser root sbuild": }
|
2013-10-04 20:23:48 +02:00
|
|
|
exec { "adduser zulip sbuild": }
|
2013-08-13 16:12:24 +02:00
|
|
|
chroot { "precise":
|
|
|
|
distro => "ubuntu",
|
|
|
|
ensure => present,
|
|
|
|
}
|
|
|
|
chroot { "quantal":
|
|
|
|
distro => "ubuntu",
|
|
|
|
ensure => present,
|
|
|
|
}
|
|
|
|
chroot { "raring":
|
|
|
|
distro => "ubuntu",
|
|
|
|
ensure => present,
|
|
|
|
}
|
|
|
|
chroot { "stable":
|
|
|
|
distro => "debian",
|
|
|
|
ensure => present,
|
|
|
|
}
|
|
|
|
chroot { "testing":
|
|
|
|
distro => "debian",
|
|
|
|
ensure => present,
|
|
|
|
}
|
2013-11-05 21:26:37 +01:00
|
|
|
chroot { "unstable":
|
|
|
|
distro => "debian",
|
|
|
|
ensure => present,
|
|
|
|
}
|
2013-08-13 16:12:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
}
|