Update README formatting
This commit is contained in:
18
README.md
18
README.md
@@ -42,7 +42,7 @@ setup, as long as the required packages are already installed. To let this
|
||||
module take care of installing the required packages, simply include the
|
||||
`sabayon` class.
|
||||
|
||||
```
|
||||
```puppet
|
||||
class { 'sabayon': }
|
||||
```
|
||||
|
||||
@@ -55,7 +55,7 @@ so no special configuration is required.
|
||||
|
||||
The provider supports package names in both the fully-qualified format, e.g.
|
||||
|
||||
```
|
||||
```puppet
|
||||
package { 'net-misc/openssh':
|
||||
ensure => installed,
|
||||
}
|
||||
@@ -63,7 +63,7 @@ package { 'net-misc/openssh':
|
||||
|
||||
Or the more verbose format:
|
||||
|
||||
```
|
||||
```puppet
|
||||
package { 'ssh-server':
|
||||
ensure => installed,
|
||||
category => 'net-misc',
|
||||
@@ -78,7 +78,7 @@ not install 'mysql' since there's no way to disambiguate between
|
||||
|
||||
### Managing enman repositories
|
||||
|
||||
```
|
||||
```puppet
|
||||
enman_repo { 'community':
|
||||
ensure => present,
|
||||
}
|
||||
@@ -90,6 +90,7 @@ Entropy is very flexible in how to specify which packages can be masked,
|
||||
and supports some or all of the following in the atom specification.
|
||||
|
||||
All of these parameters are optional, but at least one must be specified
|
||||
|
||||
* `package` (either fully qualified or unqualified package name)
|
||||
* `operator` (`<`, `<=`, `=`, `>=`, `>`. applied to version)
|
||||
* `version`
|
||||
@@ -99,6 +100,7 @@ All of these parameters are optional, but at least one must be specified
|
||||
* `repo`
|
||||
|
||||
The `entropy_mask` type also takes the following optional parameters:
|
||||
|
||||
* `target` (The path to the mask file, defaults to
|
||||
`/etc/entropy/packages/package.mask`)
|
||||
|
||||
@@ -107,7 +109,7 @@ The `entropy_mask` type also takes the following optional parameters:
|
||||
To mask all packages within the `community` repository by default
|
||||
and later unmask specific packages, you could use something like:
|
||||
|
||||
```
|
||||
```puppet
|
||||
entropy_mask { 'mask-community-by-default':
|
||||
repo => 'community',
|
||||
}
|
||||
@@ -115,7 +117,7 @@ entropy_mask { 'mask-community-by-default':
|
||||
|
||||
Alternatively, you could mask newer versions of a package
|
||||
|
||||
```
|
||||
```puppet
|
||||
entropy_mask { 'mask-postgresql-9.5+':
|
||||
package => 'app-shells/bash',
|
||||
operator => '>=',
|
||||
@@ -127,7 +129,7 @@ Or mask a package with an undesirable set of use flags, e.g.
|
||||
to ensure any installed version of openssh supports ldap, mask
|
||||
all versions of openssh which don't include ldap support with:
|
||||
|
||||
```
|
||||
```puppet
|
||||
entropy_mask { 'openssh-without-ldap-support':
|
||||
package => 'net-misc/openssh',
|
||||
use => '-ldap',
|
||||
@@ -153,7 +155,7 @@ in the example above you have masked everything in the `community` repository
|
||||
you could enable installing a particular package from that repository again
|
||||
using:
|
||||
|
||||
```
|
||||
```puppet
|
||||
entropy_unmask { 'sublime':
|
||||
package => 'app-editors/sublime-text',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user