File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1+ Examples
2+ ========
3+
4+ Basic query for nodes using :mod: `pypuppetdb `::
5+
6+ import pypuppetdb
7+ import pypuppetdbquery
8+
9+ pdb = pypuppetdb.connect()
10+
11+ pdb_ast = pypuppetdbquery.parse(
12+ '(processorcount=4 or processorcount=8) and kernel=Linux')
13+
14+ for node in pdb.nodes(query=pdb_ast):
15+ print(node)
Original file line number Diff line number Diff line change 33 You can adapt this file completely to your liking, but it should at least
44 contain the root `toctree` directive.
55
6- Welcome to pypuppetdbquery's documentation!
7- ===========================================
6+ pypuppetdbquery documentation
7+ =============================
88
99Contents:
1010
1111.. toctree ::
1212 :maxdepth: 3
1313
1414 pypuppetdbquery
15+ examples
1516
1617Indices and tables
1718==================
1819
1920* :ref: `genindex `
2021* :ref: `modindex `
2122* :ref: `search `
22-
You can’t perform that action at this time.
0 commit comments