Пример #1
0
 def setup_environment(self):
     master_node = self.nodes().masters[0]
     master_node.disk_devices.get(device='cdrom').volume.upload(ISO_IMAGE)
     start_nodes = self.get_startup_nodes()
     self.environment().start(start_nodes)
     for node in start_nodes:
         node.await('public', timeout=SETUP_TIMEOUT)
     master_remote = master_node.remote('public', login='******', password='******')
     add_nmap(master_remote)
     self.environment().snapshot(EMPTY_SNAPSHOT)
Пример #2
0
 def setup_master_node(self, master_remote, nodes):
     setup_puppet_master(master_remote)
     add_nmap(master_remote)
     switch_off_ip_tables(master_remote)
     self.add_nodes_to_hosts(master_remote, nodes)
Пример #3
0
 def setup_master_node(self, master_remote, nodes):
     setup_puppet_master(master_remote)
     add_nmap(master_remote)
     switch_off_ip_tables(master_remote)
     self.add_nodes_to_hosts(master_remote, nodes)