{% extends "admin_base.html" %} {% block title %}Viewing Node{% endblock %} {% block content %}
{% if flash.info is defined %} {{ flash.info.0|raw }} {% endif %}

Basic Information


Please enter the FQDN for this node. If you do not have one please enter its IP address. This must be a valid FQDN if using a signed SSL certificate. (It must have a valid DNS record that resolves to an IP. Do not include the http://, www, or any trailing information. [i.e. enter only node.example.com])

Please update your Scales configuration file and add this as a token that can connect and use it. You do not need to click the button below once you've done this. Whats this?


Scales Configuration File
{
	"listen": {
		"sftp": {{ node.daemon_sftp }},
		"rest": {{ node.daemon_listen }}
	},
	"urls": {
		"download": "{{ settings.master_url }}auth/remote/download",
		"install": "{{ settings.master_url }}auth/remote/install-progress"
	},
	"ssl": {
		"key": "https.key",
		"cert": "https.pem"
	},
	"basepath": "{{ node.daemon_base_dir }}",
	"keys": [
		"{{ node.daemon_secret }}"
	],
	"upload_maxfilesize": 100000000,
	"docker": {% if node.docker == 1 %} true {% else %} false {% endif %}

}

IP & Port Allocation


{% for ip, ports in portlisting %} {% endfor %}
IP Address Ports
{{ ip }}
Add Port(s) | Delete
{% for port, avaliable in ports %} {% if loop.index is odd %} {% if avaliable == 1 %} {% else %} {% endif %}   {{ port }}
{% endif %} {% endfor %}
{% for port, avaliable in ports %} {% if loop.index is even %} {% if avaliable == 1 %} {% else %} {% endif %}   {{ port }}
{% endif %} {% endfor %}
Add New IP Address
Key

(Port Available; Click to Delete Port)

(Port Used; Cannot Delete)

SFTP Settings



Auto-Deploy Node
{% if autodeploy == false %}

Node Auto-Deployment allows you to run one quick command on your new node to install Scales and set it up immediately. Press the button below to generate a temporary token that will allow you to perform this action.

{% else %}
Please SSH into this node and then run the command below to setup Scales. This script will auto-expire 15 minutes after creation.
sudo bash -c 'source <(curl -sSLk {{ settings.master_url }}auth/remote/deploy/{{ autodeploy.code }})'

This automatic deploy script has been tested on the systems below. If your OS is not listed then it probably is not (officially) supported. If there is a pre-run command listed it must be run before running the command above.

Operating System Pre-Run Command
Ubuntu 14.04 (x64) n/a
Ubuntu 15.10 (x64) apt-get install curl
Debian 8.2 (x64) apt-get install sudo curl
CentOS 7.1 (x64) n/a
{% endif %}

Delete Node


Deleting a node is an irreversible action. Proceede with caution. This node will be removed from the database immediately.
{% endblock %} {% block javascript %} {% endblock %}