Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions jobs/nessus.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
job "nessus" {
datacenters = ["aperture"]
type = "service"

group "web" {
network {
port "http" {
to = 8834
}
}

service {
name = "nessus"
port = "http"

check {
type = "http"
path = "/"
interval = "10s"
timeout = "2s"
protocol = "https"
tls_skip_verify = true
}

}

task "nessus" {
driver = "docker"

config {
image = "tenable/nessus:latest-ubuntu"
ports = ["http"]
privileged = true # NOTE: Replace this with (one of) the below once docker driver has been configured for it

# cap_add = ["NET_ADMIN", "NET_RAW"]

volumes = [
"/storage/nomad/${NOMAD_JOB_NAME}/users:/opt/nessus/var/nessus/users",
]
}

template {
destination = "local/.env"
env = true
data = <<EOF
USERNAME = {{ key "nessus/username" }}
PASSWORD = {{ key "nessus/password" }}
ACTIVATION_CODE = {{ key "nessus/activation_code" }}
EOF
}

resources {
cpu = 1000
memory = 4096
}
}
}
}