Esempio n. 1
0
    def _report_created(self):
        # set up the report data
        rows = []
        ips = []
        data_center = self._get_data_center().get('ABBR')
        plan = self._get_plan().get('RAM')

        for linode in self._created_linodes:
            rows.append(
                (linode['hostname'], linode['public'], linode['private'],
                 linode['gateway'], data_center, plan))
            ips.append(linode['public'])

        firewall_command = './apply-firewall.py --private-key /path/to/key/deis --hosts ' + string.join(
            ips, ' ')
        header_msg = '  Successfully provisioned ' + str(
            self.num_nodes) + ' nodes!'
        footer_msg = '  Finish up your installation by securing your cluster with the following command:\n  ' + firewall_command + '\n'
        linodeutils.log_table(rows, header_msg, footer_msg)
Esempio n. 2
0
    def _report_created(self):
        # set up the report data
        rows = []
        ips = []
        data_center = self._get_data_center().get("ABBR")
        plan = self._get_plan().get("RAM")

        for linode in self._created_linodes:
            rows.append((linode["hostname"], linode["public"], linode["private"], linode["gateway"], data_center, plan))
            ips.append(linode["public"])

        firewall_command = "./apply-firewall.py --private-key /path/to/key/deis --hosts " + string.join(ips, " ")
        header_msg = "  Successfully provisioned " + str(self.num_nodes) + " nodes!"
        footer_msg = (
            "  Finish up your installation by securing your cluster with the following command:\n  "
            + firewall_command
            + "\n"
        )
        linodeutils.log_table(rows, header_msg, footer_msg)
Esempio n. 3
0
    def _report_created(self):
        # set up the report data
        rows = []
        ips = []
        data_center = self._get_data_center().get('ABBR')
        plan = self._get_plan().get('RAM')

        for linode in self._created_linodes:
            rows.append((
                linode['hostname'],
                linode['public'],
                linode['private'],
                linode['gateway'],
                data_center,
                plan
            ))
            ips.append(linode['public'])

        firewall_command = './apply-firewall.py --private-key /path/to/key/deis --hosts ' + string.join(ips, ' ')
        header_msg = '  Successfully provisioned ' + str(self.num_nodes) + ' nodes!'
        footer_msg = '  Finish up your installation by securing your cluster with the following command:\n  ' + firewall_command + '\n'
        linodeutils.log_table(rows, header_msg, footer_msg)