package main

import (
	"fmt"
	log "github.com/Sirupsen/logrus"
	"os/exec"
)

const WORKER_GENERATOR string = "/opt/kilauea/bin/signworker.sh"

func signWorker(workerIP string, workerFQDN string) {
	_, err := exec.Command(WORKER_GENERATOR, workerIP, workerFQDN).Output()

	if err != nil {
		log.Info(fmt.Sprintf("signWorker exec.Command ERROR: [[%s]]", err))
		log.Info(fmt.Sprintf("IP: [[%s]] FQDN: [[%s]]", workerIP, workerFQDN))
	}
}
