aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipe_modules/skia/ssh_devices.py
blob: d8ce93757202178618e97e62a8a21e01914766e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env python
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.


import collections
import json


DEFAULT_PORT = '22'
DEFAULT_USER = 'chrome-bot'


SlaveInfo = collections.namedtuple('SlaveInfo',
                                   'ssh_user ssh_host ssh_port')

SLAVE_INFO = {
  'skiabot-shuttle-ubuntu12-003':
      SlaveInfo('root', '192.168.1.123', DEFAULT_PORT),
  'skiabot-shuttle-ubuntu12-004':
      SlaveInfo('root', '192.168.1.134', DEFAULT_PORT),
  'default':
      SlaveInfo('nouser', 'noip', 'noport'),
}


if __name__ == '__main__':
  print json.dumps(SLAVE_INFO)  # pragma: no cover