Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

tripwire_agent (16) Versions 0.1.1

Installs/Configures tripwire_agent

Policyfile
Berkshelf
Knife
cookbook 'tripwire_agent', '= 0.1.1', :supermarket
cookbook 'tripwire_agent', '= 0.1.1'
knife supermarket install tripwire_agent
knife supermarket download tripwire_agent
README
Dependencies
Changelog
Quality 80%

tripwire_agent

Cookbook installs Tripwire Enterprise Agents, either Axon or Java. This cookbook also provides a resource to upgrade a Java agent

Features

This cookbook provides resources for the installation of Tripwire Enterprise Axon and Java agents. Users are able to include this cookbook in their own cookbooks or use the cookbook on its own to install their agents within their infrastructure. A recipe is also included to migrate a system from a Java agent to an Axon agent.

Requirements

  • Chef 12.5 or higher
  • Tripwire Enterprise installers available through a share or web service

Provider Documentation

Axon Parameters

Parameter Definition Type
installer Defines the path to the installer package for the axon agent, accepts urls to the installer String
eg_driver_installer Defines the path to the installer package for the axon EG driver installer (linux/debian only) String
eg_service_installer Defines the path to the installer package for the axon EG service installer (linux/debian only) String
install_directory Install path for the Axon agent (current not in use) String
eg_install Install the EG driver and service (linux/debian only) Boolean
dns_srvc_name Sets the DNS pointer for the Bridge service String
dns_srvc_domain Sets the DNS domain for the pointer String
bridge_auth_mode Registration type, password or PKI String
keystore_password PKI keystore password String
registration_filename Registration password file String
registration_key Registration password for the Bridge String
proxy_hostname Proxy hostname used by the Axon agent String
proxy_port Proxy port used by the Axon agent Integer
proxy_username Proxy username used by the Axon agent String
proxy_password Proxy password used by the Axon agent String
tls_version TLS version used by the agent, TLSv1.0, TLSv1.1, TLSv1.2 String
cipher_suites Cipher suites used by Axon to connect to the Bridge String
spool_size Spool size used by the agent, default 1g String
bridge Bridge hostname or IP if not using DNS to connect to the Bridge String
bridge_port 'Bridge port, used to connect if the Bridge is set' Integer
start_service Start the agent service post install (See Gotchas) Boolean
tags Key/Value hash of tags used when registering to Tripwire Enterprise Hash
clean Used for the remove action, deletes the configuration directory true

Axon Actions

  • :install - Default action, Installs the Axon agent
  • :remove - Removes an existing Axon agent

Java Parameters

Parameter Definition Type
installer Defines the path to the Java agent installer String
console Defines the Tripwire Enterprise console server String
services_password Defines the services password used by the agent to connect to the Console server String
console_port Defines the port used by the Tripwire Enterprise console to connect the agent to the console String
install_directory Defines the directory the agent will be installed to on the target system String
install_rtm Tells the installer not to install EG services Boolean
rtm_port Defines the local port used by the EG services Integer
proxy_agent Configures the agent to become a proxy for other agents Boolean
proxy_hostname Defines the hostname or IP of another Java agent serving as a proxy to the Tripwire Enterprise Console String
proxy_port Defines the proxy port used by the proxy or to connect to a Java proxy agent Integer
fips Tells the installer to enable FIPS mode Boolean
integration_port Defines the integration port, if FIPS is set Integer
start_service Defines if the service starts once the agent is installed Boolean
tags Key/Value hash of tag sets and tags used when the agent first registers to the Tripwire Enterprise console Hash

Java Actions

  • :install - Default action, Installs the Java agent
  • :remove - Removes the java agent

Required properties

Java
* installer
* console
* services_password

Axon
* installer
* eg_driver_installer (if installing EG/RTM, linux/debian only)
* eg_service_installer (if installing EG/RTM, linux/debain only)
* dns_srvc_name (if using DNS to direct agent to the bridge)
* dns_srvc_domain (if using DNS)
* bridge_server (if providing the IP/Hostname of the bridge)
* keystore_password (if using PKI)
* registration_key (if using a registration key to authenticate to the bridge)

Attributes

Key Type Description Default Java Required Axon Required
['tripwire_agent']['installer'] String Path to the agent installer file, accepts http and file paths nil Yes Yes
['tripwire_agent']['tags'] Hash Hash of tag sets and tags applied when the agent registers {} No No
['tripwire_agent']['proxy_hostname'] String Hostname/IP of the proxy server used by the agent nil No No
['tripwire_agent']['proxy_port'] Integer Proxy's listening port 1080 No No
['tripwire_agent']['install_rtm'] Boolean Installs Real-Time monitoring modules true No No
['tripwire_agent']['rtm_port'] Integer Port used by the Real-Time service 1169 No No
['tripwire_agent']['start_service'] Boolean Starts the agent once installation completes true No No
['tripwire_agent']['java']['console'] String Tripwire Enterprise hostname/IP nil Yes -
['tripwire_enterprise']['java']['services_password'] String Services password required to connect the java agent to the Tripwire Enterprise Console nil Yes -
['tripwire_agent']['java']['console_port'] Integer Port used by both the agent and console for communication 9898 No -
['tripwire_agent']['java']['proxy_agent'] Boolean Configures the agent to be a proxy false No -
['tripwire_agent']['java']['fips'] Boolean Enables FIPS mode on the java agent false No -
['tripwire_agent']['java']['integration_port'] Integer Configures the integration port used by the Tripwire Enterprise Console, only set if FIPS is enabled 8080 No -
['tripwire_agent']['java']['install_directory'] String Modifies the default installation directory for the agent Windows: C:\Program Files\Tripwire\TE\Agent Linux: /usr/local/tripwire/te/agent No -
['tripwire_agent']['axon']['eg_driver_installer'] String Event Generator installer for linux nil - No
['tripwire_agent']['axon']['eg_service_installer'] String Event Generator service installer for linux nil - No
['tripwire_agent']['axon']['bridge'] String Hostname or IP of the bridge server nil - Yes
['tripwire_agent']['axon']['bridge_port'] Integer Bridge port listening for Axon agents 5670 - No
['tripwire_agent']['axon']['dns_srvc_name'] String PTR used by axon to connect to the bridge _tw_gw No No
['tripwire_agent']['axon']['dns_srvc_domain'] String Domain to find the PTR to connect to the bridge nil No No
['tripwire_agent']['axon']['bridge_auth_mode'] String Method used to register with the bridge, registration or pki registration - No
['tripwire_agent']['axon']['keystore_password'] String Password used to unlock the PKI keystore nil - No
['tripwire_agent']['axon']['registration_filename'] String File name used for the registration key file registration_pre_shared_key.txt - No
['tripwire_agent']['axon']['proxy_username'] String Username to authenticate to the Axon proxy nil - No
['tripwire_agent']['axon']['proxy_password'] String Password to authenticate to the Axon proxy nil - No
['tripwire_agent']['axon']['tls_version'] String TLS version(s) used by the Axon agent will use connecting to the bridge nil - No
['tripwire_agent']['axon']['cipher_suites'] String Cipher suites the Axon agent will use connecting to the bridge nil - No
['tripwire_agent']['axon']['spool_size'] String Set a custom spool size 1g - No
['tripwire_agent']['axon']['clean'] Boolean Used in uninstalling the agent to clean up the configuration directory true - No

Provider Usage

Axon

Place this dependency inside your cookbooks metadata.rb.

depends 'tripwire_agent', '~> 0.1.0'

Within your recipe:

tripwire_agent_axon 'Installing the Tripwire Axon Agent' do
  installer '/mnt/share/tripwire/axon-agent-installer-linux-x64.rpm'
  eg_driver_installer '/mnt/share/tripwire/tw-eg-driver.x86_64.rpm'
  eg_service_installer '/mnt/share/tripwire/tw-eg-service.x86_64.rpm'
  bridge 'tw-console.example.com'
  registration_key 'PaS5w0rd!_K3y'
  tags {"Platform": "Red Hat", "Policy": ["PCI", "SOX"], "Importance": "High", "Org": ["Payment", "Sales", "Production"]}
end

The configuration above will install the Axon agent, EG Driver, EG Service onto the platform. The twagent.conf file will be set to point to the bridge server and sets a registration password file (This file will be removed once the agent successfully registers with the bridge). Tagging file will also be created and will be used only once during the first time the agent connects to the bridge for Tripwire Enterprise.

Java

Place this dependency inside your cookbooks metadata.rb.

depends 'tripwire_agent', '~> 0.1.0'

Within your recipe:

tripwire_agent_java 'Install Tripwire Java Agent' do
  installer '/mnt/share/tripwire/te_agent.bin'
  console 'tw-console.example.com'
  services_password 'Pas5W0rd!_C0mp13x!Ty^'
  tags {"Platform": "Red Hat", "Policy": ["PCI", "SOX"], "Importance": "High", "Org": ["Payment", "Sales", "Production"]}
end

The configuration above will install the Tripwire Java agent and point it at the Tripwire Enterprise console. It will register with a hash of tags when the agent first registers to the console server.

Recipe Usage

Axon

Sample Installation Role:

chef_type:                  role
default_attributes:
description:                Axon agent install for Linux, no DNS record
env_run_lists:
json_class:                 Chef::Role
name:                       axon_install_linux_x64
override_attributes:
  tripwire_agent:
    installer:              '/mnt/share/tripwire/axon-agent-installer-linux-x64.rpm'
    tags:                   {"Platform": "Red Hat", "Policy": ["PCI", "SOX"], "Importance": "High", "Org": ["Payment", "Sales", "Production"]}
    axon:
      eg_driver_installer:  '/mnt/share/tripwire/tw-eg-driver.x86_64.rpm'
      eg_service_installer: '/mnt/share/tripwire/tw-eg-service.x86_64.rpm'
      bridge:               'tw-console.example.com'
      registration_key:     'PaS5w0rd!_K3y'
run_list:
  recipe[tripwire_agent::axon_agent]

Sample Migration Role:

chef_type:                  role
default_attributes:
description:                Axon agent install for Linux, no DNS record
env_run_lists:
json_class:                 Chef::Role
name:                       axon_install_linux_x64
override_attributes:
  tripwire_agent:
    installer:              '/mnt/share/tripwire/axon-agent-installer-linux-x64.rpm'
    tags:                   {"Platform": "Red Hat", "Policy": ["PCI", "SOX"], "Importance": "High", "Org": ["Payment", "Sales", "Production"]}
    axon:
      eg_driver_installer:  '/mnt/share/tripwire/tw-eg-driver.x86_64.rpm'
      eg_service_installer: '/mnt/share/tripwire/tw-eg-service.x86_64.rpm'
      bridge:               'tw-console.example.com'
      registration_key:     'PaS5w0rd!_K3y'
run_list:
  recipe[tripwire_agent::migrate]

Java

Java recipes include a removal recipe and an installation recipe.

Sample Role:

chef_type:                  role
default_attributes:
description:                Java agent install for Linux
env_run_lists:
json_class:                 Chef::Role
name:                       java_install_linux_x64
override_attributes:
  tripwire_agent:
    installer:              '/mnt/share/tripwire/te_agent.bin'
    tags:                   {"Platform": "Red Hat", "Policy": ["PCI", "SOX"], "Importance": "High", "Org": ["Payment", "Sales", "Production"]}
    axon:
      console:              'tw-console.example.com'
      services_password:    'Pas5W0rd!_C0mp13x!Ty^'
run_list:
  recipe[tripwire_agent::java_agent]

To-Do

  • Support custom pki registration

Gotchas

  • Axon agents requires some method of knowing about the bridge, either through DNS pointer record or manually configuring the bridge through the attribute or when using the resource in your cookbook.
    • Please see the Installation and Maintenance guide for any additional information
  • Axon Windows agents will automatically start post installation
    • Linux Axon agents can be prevented from starting post installation
    • Java agents for Windows and Linux can be prevented from starting post installation
  • Alternative installation paths for Java agents are not supported on Debian platforms
  • Alternative installation paths on Axon are currently not supported
  • Integration Port for Java agents will only be set if FIPS is enabled

Contributing

See the contribution guidelines for more information.

Dependent cookbooks

windows ~> 3.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

tripwire_agent Cookbook CHANGELOG

0.1.1 (2017-06-22)

Formatting fixes for documentation. No code changes.

0.1.0 (2017-06-22)

The first version released on GitHub and Chef Supermarket

Collaborator Number Metric
            

0.1.1 failed this metric

Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.1.1 passed this metric

License Metric
            

0.1.1 passed this metric

Testing File Metric
            

0.1.1 passed this metric

Version Tag Metric
            

0.1.1 passed this metric