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
|
module take care of installing the required packages, simply include the
|
||||||
`sabayon` class.
|
`sabayon` class.
|
||||||
|
|
||||||
```
|
```puppet
|
||||||
class { 'sabayon': }
|
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.
|
The provider supports package names in both the fully-qualified format, e.g.
|
||||||
|
|
||||||
```
|
```puppet
|
||||||
package { 'net-misc/openssh':
|
package { 'net-misc/openssh':
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
}
|
}
|
||||||
@@ -63,7 +63,7 @@ package { 'net-misc/openssh':
|
|||||||
|
|
||||||
Or the more verbose format:
|
Or the more verbose format:
|
||||||
|
|
||||||
```
|
```puppet
|
||||||
package { 'ssh-server':
|
package { 'ssh-server':
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
category => 'net-misc',
|
category => 'net-misc',
|
||||||
@@ -78,7 +78,7 @@ not install 'mysql' since there's no way to disambiguate between
|
|||||||
|
|
||||||
### Managing enman repositories
|
### Managing enman repositories
|
||||||
|
|
||||||
```
|
```puppet
|
||||||
enman_repo { 'community':
|
enman_repo { 'community':
|
||||||
ensure => present,
|
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.
|
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
|
All of these parameters are optional, but at least one must be specified
|
||||||
|
|
||||||
* `package` (either fully qualified or unqualified package name)
|
* `package` (either fully qualified or unqualified package name)
|
||||||
* `operator` (`<`, `<=`, `=`, `>=`, `>`. applied to version)
|
* `operator` (`<`, `<=`, `=`, `>=`, `>`. applied to version)
|
||||||
* `version`
|
* `version`
|
||||||
@@ -99,6 +100,7 @@ All of these parameters are optional, but at least one must be specified
|
|||||||
* `repo`
|
* `repo`
|
||||||
|
|
||||||
The `entropy_mask` type also takes the following optional parameters:
|
The `entropy_mask` type also takes the following optional parameters:
|
||||||
|
|
||||||
* `target` (The path to the mask file, defaults to
|
* `target` (The path to the mask file, defaults to
|
||||||
`/etc/entropy/packages/package.mask`)
|
`/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
|
To mask all packages within the `community` repository by default
|
||||||
and later unmask specific packages, you could use something like:
|
and later unmask specific packages, you could use something like:
|
||||||
|
|
||||||
```
|
```puppet
|
||||||
entropy_mask { 'mask-community-by-default':
|
entropy_mask { 'mask-community-by-default':
|
||||||
repo => 'community',
|
repo => 'community',
|
||||||
}
|
}
|
||||||
@@ -115,7 +117,7 @@ entropy_mask { 'mask-community-by-default':
|
|||||||
|
|
||||||
Alternatively, you could mask newer versions of a package
|
Alternatively, you could mask newer versions of a package
|
||||||
|
|
||||||
```
|
```puppet
|
||||||
entropy_mask { 'mask-postgresql-9.5+':
|
entropy_mask { 'mask-postgresql-9.5+':
|
||||||
package => 'app-shells/bash',
|
package => 'app-shells/bash',
|
||||||
operator => '>=',
|
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
|
to ensure any installed version of openssh supports ldap, mask
|
||||||
all versions of openssh which don't include ldap support with:
|
all versions of openssh which don't include ldap support with:
|
||||||
|
|
||||||
```
|
```puppet
|
||||||
entropy_mask { 'openssh-without-ldap-support':
|
entropy_mask { 'openssh-without-ldap-support':
|
||||||
package => 'net-misc/openssh',
|
package => 'net-misc/openssh',
|
||||||
use => '-ldap',
|
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
|
you could enable installing a particular package from that repository again
|
||||||
using:
|
using:
|
||||||
|
|
||||||
```
|
```puppet
|
||||||
entropy_unmask { 'sublime':
|
entropy_unmask { 'sublime':
|
||||||
package => 'app-editors/sublime-text',
|
package => 'app-editors/sublime-text',
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user