Skip to content

Commit

Permalink
Update docs for puppet_version attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcooper committed Sep 21, 2018
1 parent 29dda22 commit 0e9828f
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ file named `.fixtures.yml` in the root of the project. You can specify a alterna
You can use the `MODULE_WORKING_DIR` environment variable to specify a diffent location when installing module fixtures via the forge. By default the
working directory is `<module directory>/spec/fixtures/work-dir`.

When specifying the repo source of the fixture you have a few options as to which revision of the codebase you wish to use.
When specifying the repo source of the fixture you have a few options as to which revision of the codebase you wish to use, and optionally, the puppet versions where the fixture is needed.

* repo - the url to the repo
* scm - options include git or hg. This is an optional step as the helper code will figure out which scm is used.
Expand All @@ -215,6 +215,11 @@ When specifying the repo source of the fixture you have a few options as to whic
```yaml
flags: --verbose
```
* puppet_version - versions of puppet for which the fixture should be installed. Ruby version constraints are supported.

```yaml
puppet_version: '>= 6.0.0'
```

**Note:** ref and branch can be used together to get a specific revision on a specific branch

Expand Down Expand Up @@ -263,6 +268,16 @@ fixtures:
ref: "2.6.0"
```

Only install the `yumrepo_core` module when testing against Puppet 6 or greater:

```yaml
fixtures:
repositories:
yumrepo_core:
repo: "git://github.com/puppetlabs/puppetlabs-yumrepo_core"
puppet_version: ">= 6.0.0"
```

Move manifests and siblings to root directory when they are inside a `code` directory:

```yaml
Expand Down

0 comments on commit 0e9828f

Please sign in to comment.