mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
review
Signed-off-by: Deepa Kumaraswamy <dkumaras@progress.com>
This commit is contained in:
parent
302b996ca7
commit
8c8921067e
1 changed files with 8 additions and 10 deletions
|
@ -11,9 +11,10 @@ platform = "linux"
|
|||
parent = "inspec/resources/os"
|
||||
+++
|
||||
|
||||
Use the `ppa` Chef InSpec audit resource to verify PPA repositories on Debian-based linux distributions. Personal Package Archives (PPAs) are software repositories designed for Ubuntu users and are easier to install than other third-party repositories.
|
||||
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`
|
||||
|
@ -22,27 +23,23 @@ The following ppa formats are supported:
|
|||
|
||||
### Installation
|
||||
|
||||
This resource is distributed along with Chef InSpec itself. You can use it automatically.
|
||||
This resource is distributed with Chef InSpec.
|
||||
|
||||
## Syntax
|
||||
|
||||
A `ppa` Chef InSpec audit resource verifies PPA repositories on Debian-based linux distributions
|
||||
|
||||
describe ppa('path') do
|
||||
it { should exist }
|
||||
it { should be_enabled }
|
||||
end
|
||||
where
|
||||
|
||||
- `ppa('path')` must specify a PPA repository
|
||||
- `exist` and `be_enabled` are a valid matchers for this resource
|
||||
- `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](https://docs.chef.io/inspec/matchers/).
|
||||
|
||||
The specific matchers of this resource are: `exist` and `be_enabled`
|
||||
|
||||
### exist
|
||||
|
||||
The `exist` matcher tests if a repository exists on the system:
|
||||
|
@ -54,7 +51,9 @@ The `exist` matcher tests if a repository exists on the system:
|
|||
The `be_enabled` matcher tests if a repository is enabled on the system:
|
||||
|
||||
it { should be_enabled }
|
||||
## Examples
|
||||
|
||||
## Example
|
||||
|
||||
The following example shows how to use this Chef InSpec audit resource.
|
||||
|
||||
### Verify that a PPA repository exists and is enabled
|
||||
|
@ -63,4 +62,3 @@ The following example shows how to use this Chef InSpec audit resource.
|
|||
it { should exist }
|
||||
it { should be_enabled }
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue