drp-node

by zehicle
34 deployments · 35 still active · last rev. 28 days ago

Adds node to a running Digital Rebar Provision endpoint

Compatible with: CentOS 7, CoreOS Container Linux, Debian 10, Ubuntu 18.04 LTS, Ubuntu 18.10, Ubuntu 19.04
						#!/bin/bash
# <UDF name="drp_ip" Label="IP Address of the DRP Endpoint" default="" example="192.168.1.100" />
# <UDF name="drp_port" Label="Provisioning Port of the DRP Endpoint (not API port)" default="8091" example="8091" />
# <UDF name="open_ports" Label="Ports to open on the machine" default="22 2379 2380 6443 10250" example="22 6443 10250" />

curl -fsSL ${DRP_IP}:${DRP_PORT}/machines/join-up.sh | sudo bash --

for PORT in ${OPEN_PORTS}; do
   firewall-cmd --permanent --add-port=${PORT}/tcp
done 
firewall-cmd --reload