Skip to main content

ppa resource

Use the ppa Chef InSpec audit resource to verify the PPA repositories on Debian-based Linux distributions. The Personal Package Archives (PPAs) are software repositories designed for Ubuntu users and are easier to install than other third-party repositories.

The following ppa formats are supported:

  • ubuntu-wine/ppa
  • ppa:ubuntu-wine/ppa
  • http://ppa.launchpad.net/juju/stable/ubuntu

Availability

Installation

This resource is distributed with Chef InSpec.

Syntax

describe ppa('PATH') do
  it { should exist }
  it { should be_enabled }
end

where

  • ppa('PATH') represents PPA repository
  • exist and be_enabled are a valid matchers for this resource.

Matchers

For a full list of available matchers, please visit our matchers page.

exist

The exist matcher tests if a repository exists on the system:

it { should exist }

be_enabled

The be_enabled matcher tests if a repository is enabled on the system:

it { should be_enabled }

Example

The following example shows how to use this Chef InSpec audit resource.

Verify that a PPA repository exists and is enabled

describe ppa('ppa:nginx/stable') do
  it { should exist }
  it { should be_enabled }
end
Edit this page on GitHub

Thank you for your feedback!

×









Search Results