File: servers.py.example

package info (click to toggle)
python-hpilo 4.4.3-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,784 kB
  • sloc: python: 3,418; ruby: 467; makefile: 122; sh: 31
file content (18 lines) | stat: -rw-r--r-- 691 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Since the elasticsearch importer needs to know about all your servers, let's
# extract that method so you can easily use the elasitcsearch importer. From
# this function you should query your infrastructure database or do whatever
# you do to get a list of all servers. The function should return a list of
# ilo names or ip addresses
#
# This example implementation merely returns a static list of hosts.

def get_all_ilos():
    return [
         'example-server-1.int.kaarsemaker.net',
         'example-server-2.int.kaarsemaker.net',
         'example-server-2.int.kaarsemaker.net',
         '10.42.128.1',
         '10.42.128.2',
         '10.42.128.3',
         '10.42.128.4',
    ]