Forge Home

nessus_agent

The nessus_agent module provides tasks and plans to allow you to upload, install, link and unlink nessus agents across Linux and Windows

2,856 downloads

1,246 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.1.3 (latest)
  • 1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.8
  • 1.0.7
  • 1.0.6
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
released Feb 23rd 2021
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
  • Puppet >= 4.10.0 < 7.0.0
  • , , , ,
Tasks:
  • install
  • link
  • unlink
Plans:
  • install_link

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'kinners00-nessus_agent', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add kinners00-nessus_agent
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install kinners00-nessus_agent --version 1.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

kinners00/nessus_agent — version 1.0.0 Feb 23rd 2021

nessus_agent

Table of Contents

  1. Description
  2. Usage - Examples and general tips on how to use the content in this module
  3. Contributions - Guide for contributing to the module

Description

The nessus_agent module allows you to install, link and unlink nessus agents across linux and windows.

Usage

Tasks

Tasks are cross platform so you only need to specify your targets and the task will work out what needs to be done per supported OS across *nix & windows. Whilst they are cross platform tasks, you can only run the nessus_agent::link & nessus_agent::unlink tasks on a mix of targets comprising of disparate oses at the same time.

Agent Install

Windows

bolt task run -t <targets> nessus_agent::install installer_path="C:\tmp\NessusAgent-8.2.2-x64.msi"

Linux

RPM & DEB are both supported

bolt task run -t <targets> nessus_agent::install installer_path="/tmp/NessusAgent-8.2.2-es7.x86_64.rpm"

Agent Link

If you're using tenable.io then at the very minimum, you'll only need to pass your linking key and your Nessus agents will pair with your tenable instance however they're a bunch of optional parameters you can take advantage of such agent name, groups, offline install and more.

Pair with Tenable.io

bolt task run -t <targets> nessus_agent::link key=836e1c023f20601162f908234835c0aa1c61c91a4c750a1f094b4adfc396cdde

Pair with Nessus Manager

bolt task run -t <targets> nessus_agent::link key=<yourkey> host="216.58.198.174" port=8834

Groups

bolt task run -t <targets> nessus_agent::link key=<yourkey> groups="mygroup"

Multiple Groups

bolt task run -t <targets> nessus_agent::link key=<yourkey> groups="mygroup,mygroup2,mygroup3"

Name

bolt task run -t <targets> nessus_agent::link key=<yourkey> name="mynode.nodecorp.com"

Offline Install

bolt task run -t <targets> nessus_agent::link key=<yourkey> offline_install=yes

Proxy host & Port

There are also additional flags around proxy usage with Tenable such as pass proxy_username, proxy_password and proxy_agent.

bolt task run -t <targets> nessus_agent::link key=<yourkey> host=<myhost> port=<hostport> proxy_host="host.corp.com" proxy_port="8834"

Agent Unlink

bolt task run -t <targets> nessus_agent::unlink

Plans

Upload, Install & Link Agent

All of the parameters found in nessus_agent::install and nessus_agent::link tasks are supported in this "complete workflow" plan. This plan will allow you to specify a Nessus agent install package locally on your bolt workstation for upload to your remote targets. Once uploaded, it will then install the Nessus agent using the package provided and link the Tenable agent to tenable.io or Nessus Manager, depending on the flags passed.

bolt plan run test::install_link -t <targets> install_file_local="/home/user/NessusAgent-8.2.2-x64.msi" install_file_destination="C:\tmp" installer_path="C:\tmp\NessusAgent-8.2.2-x64.msi" key=<yourkey> groups=<mygroups>

Install and Link only

You can set upload=false to skip the upload step and only install and link agents if you've already uploaded the Nessus agent installer to the target node(s) via alternate methods.

bolt plan run test::install_link -t <targets> installer_path=<pathtoinstaller> key=<yourkey> groups=<mygroups> upload=false

Contributions

If anyone would like to contribute to the module, that would be awesome and very much welcomed.

Repo: https://github.com/kinners00/nessus_agent

If you're experiencing any bugs, please raise an issue below:

Issues link: https://github.com/kinners00/nessus_agent/issues