]> git.apps.os.sepia.ceph.com Git - autobuild-ceph.git/commit
build-auto: determine gitbuilder behavior from the hostname
authorSage Weil <sage@inktank.com>
Tue, 19 Feb 2013 05:09:50 +0000 (21:09 -0800)
committerSage Weil <sage@inktank.com>
Tue, 19 Feb 2013 05:09:50 +0000 (21:09 -0800)
commit887e55191922f4412a502b06bff996c43d83a0fc
treef2e8e77bd14c966f57c5397b850f320b91cceced
parente6da89574c7b3f2eaeee43b70cb7c91dd2a962c9
build-auto: determine gitbuilder behavior from the hostname

Figure out what the build should do based on keywords in the
hostname.  Similarly, rsync to the remote target using the
fields in the hostname:

 gitbuilder-PROJECT-WHAT-DISTRO-ARCH-FLAVOR

 PROJECT is ceph, ...
 WHAT is deb or rpm (so far)
 DISTRO is precise, etc.
 ARCH is amd64, i386 (although the VM knows this anyway)
 FLAVOR is basic, notcmalloc, gcov, ...

This will simplify the fabfile a bit (at least for new builder VMs).  We
also solve the problem is passing the environment into the package build
from one central location (build-auto.sh) which has enough context/state in
the hostname to do the right thing.

Signed-off-by: Sage Weil <sage@inktank.com>
build-auto.sh [new file with mode: 0644]
fabfile.py