Debian Codegraph @

examples/elasticsearch/servers.py.example

raw
1 # Since the elasticsearch importer needs to know about all your servers, let's
2 # extract that method so you can easily use the elasitcsearch importer. From
3 # this function you should query your infrastructure database or do whatever
4 # you do to get a list of all servers. The function should return a list of
5 # ilo names or ip addresses
6 #
7 # This example implementation merely returns a static list of hosts.
8
9 def get_all_ilos():
10 return [
11 'example-server-1.int.kaarsemaker.net',
12 'example-server-2.int.kaarsemaker.net',
13 'example-server-2.int.kaarsemaker.net',
14 '10.42.128.1',
15 '10.42.128.2',
16 '10.42.128.3',
17 '10.42.128.4',
18 ]