Пример #1
0
 def addPresenceInfo(self, stateGrp, name, ip, port):
     self.assertIn(stateGrp, ('alloweds', 'aliveds', 'reapeds'))
     group = self.store.fetch('.salt.var.presence.{0}'.format(stateGrp))
     if group.value is None:
         group.value = odict()
     remote = Stack()
     remote.ha = (ip, port)
     group.value[name] = remote
Пример #2
0
 def addPresenceInfo(self, stateGrp, name, ip, port):
     self.assertIn(stateGrp, ('alloweds', 'aliveds', 'reapeds'))
     group = self.store.fetch('.salt.var.presence.{0}'.format(stateGrp))
     if group.value is None:
         group.value = odict()
     remote = Stack()
     remote.ha = (ip, port)
     group.value[name] = remote
Пример #3
0
def createStack(ip):
    stack = Stack()
    stack.ha = (ip, '1234')
    return stack
Пример #4
0
def createStack(ip):
    stack = Stack()
    stack.ha = (ip, '1234')
    return stack
Пример #5
0
def createStack(ip):
    stack = Stack()
    stack.ha = (ip, "1234")
    return stack