Skip to main content

cassandradb_conf resource

Use the cassandradb_conf Chef InSpec audit resource to test the configuration of a Cassandra database, which is typically located at $CASSANDRA_HOME/cassandra.yaml or $CASSANDRA_HOME\conf\cassandra.yaml depending upon the platform.


This resource is distributed with Chef InSpec and is automatically available for use.


  • The value of the CASSANDRA_HOME environment variable must be set in the system.


A cassandradb_conf resource block fetches configurations in the cassandra.yaml file, and then compares them with the value stated in the test:

describe cassandradb_conf do
  its('config item') { should eq 'value' }


The following examples show how to use this Chef InSpec audit resource.

Test parameters set within the configuration file

describe cassandradb_conf do
  its('listen_address') { should eq 'localhost' }
  its('num_tokens') { should eq 16 }


For a full list of available matchers, see our Universal Matchers page.
Edit this page on GitHub

Thank you for your feedback!


Search Results