idem.py (salt-3002.1) | : | idem.py (salt-3002.2) | ||
---|---|---|---|---|
skipping to change at line 42 | skipping to change at line 42 | |||
Create a hub with idem ready to go and completely loaded | Create a hub with idem ready to go and completely loaded | |||
""" | """ | |||
if "idem.hub" not in __context__: | if "idem.hub" not in __context__: | |||
log.debug("Creating the POP hub") | log.debug("Creating the POP hub") | |||
hub = pop.hub.Hub() | hub = pop.hub.Hub() | |||
log.debug("Initializing the loop") | log.debug("Initializing the loop") | |||
hub.pop.loop.create() | hub.pop.loop.create() | |||
log.debug("Loading subs onto hub") | log.debug("Loading subs onto hub") | |||
hub.pop.sub.add(dyne_name="acct") | ||||
hub.pop.sub.add(dyne_name="config") | hub.pop.sub.add(dyne_name="config") | |||
# We aren't collecting grains at all but some exec modules depend on the sub being on the hub | # We aren't collecting grains at all but some exec modules depend on the sub being on the hub | |||
hub.pop.sub.add(dyne_name="grains") | hub.pop.sub.add(dyne_name="grains") | |||
hub.pop.sub.add(dyne_name="idem") | hub.pop.sub.add(dyne_name="idem") | |||
hub.pop.sub.add(dyne_name="exec") | ||||
hub.pop.sub.add(dyne_name="states") | ||||
log.debug("Reading idem config options") | log.debug("Reading idem config options") | |||
hub.config.integrate.load(["acct", "idem"], "idem", parse_cli=False, log s=False) | hub.config.integrate.load(["acct", "idem"], "idem", parse_cli=False, log s=False) | |||
__context__["idem.hub"] = hub | __context__["idem.hub"] = hub | |||
return __context__["idem.hub"] | return __context__["idem.hub"] | |||
End of changes. 2 change blocks. | ||||
3 lines changed or deleted | 0 lines changed or added |