bug 914764: replace kittenherder's rebooting with slaveapi - add sample ini file + adjust setup.py script. r=dustin
authorBen Hearsum <bhearsum@mozilla.com>
Thu, 19 Dec 2013 08:45:51 -0500
changeset 4285 298ab0f23e8eaefc03693e9369b4a9f3c18cefa2
parent 4284 3303d831ebf67682a4ffeb2f543a194927fbd816
child 4286 92acb03e1020185f3a842f3725528144a3f995ce
push id3121
push userbhearsum@mozilla.com
push dateThu, 19 Dec 2013 13:45:59 +0000
reviewersdustin
bugs914764
bug 914764: replace kittenherder's rebooting with slaveapi - add sample ini file + adjust setup.py script. r=dustin
buildfarm/maintenance/slaverebooter.ini.sample
setup.py
new file mode 100644
--- /dev/null
+++ b/buildfarm/maintenance/slaverebooter.ini.sample
@@ -0,0 +1,11 @@
+[main]
+verbose = false
+slaveapi_server = http://slaveapi.blah
+workers = 4
+
+[exclude]
+# Hosts which match any key in this section will be skipped when processing
+# slaves. Any values listed here will be ignored.
+ec2 =
+spot =
+# etc.
--- a/setup.py
+++ b/setup.py
@@ -17,19 +17,24 @@ setup(
 
     test_suite='mozilla_buildtools.test',
 
     install_requires=[
         'sqlalchemy',
         'argparse',
         'twisted',
         'simplejson',
+        'furl',
+        'requests',
+        'docopt',
     ],
 
     entry_points={
         'console_scripts': [
             'slavealloc = slavealloc.scripts.main:main'
         ],
     },
 
+    scripts=["buildfarm/maintenance/reboot-idle-slaves.py"],
+
     # include files listed in MANIFEST.in
     include_package_data=True,
 )