Exemple #1
0
    def configure_cobbler(self, cobbler):
        """

        """
        client = CobblerClient(cobbler.get_ip_address_by_network_name("internal"))
        token = client.login("cobbler", "cobbler")
        master = self.environment().node_by_name("master")
        for node in self.ci().client_nodes():
            self.add_node(
                client,
                token,
                cobbler,
                node,
                gateway=cobbler.get_ip_address_by_network_name("internal"),
                net_mask=self.ci().internal_net_mask(),
            )

        remote = master.remote("internal", login="******", password="******")
        add_to_hosts(remote, master.get_ip_address_by_network_name("internal"), master.name, master.name + DOMAIN_NAME)

        self.environment().snapshot("cobbler-configured", force=True)
Exemple #2
0
def await_node_deploy(ip, name):
    client = CobblerClient(ip)
    token = client.login('cobbler', 'cobbler')
    _wait(lambda: check_node_ready(client, token, name), timeout=30 * 60)