Commit bb7c7b49b78ce8a883507ff4c929a200c5da05a8
1 parent
c0f26dfc56
people module doc update
Showing 1 changed file with 11 additions and 1 deletions Inline Diff
modules/people/README.md
# Personal Manifests | 1 | 1 | # Personal Manifests | |
2 | 2 | |||
Per-user manifests live in `modules/people/manifests/$login.pp`, where | 3 | 3 | Per-user manifests live in `modules/people/manifests/$login.pp`, where | |
`$login` is a GitHub login. A simple user manifest example: | 4 | 4 | `$login` is a GitHub login. A simple user manifest example: | |
5 | 5 | |||
```puppet | 6 | 6 | ```puppet | |
class people::jbarnette { | 7 | 7 | class people::jbarnette { | |
include emacs # requires emacs module in Puppetfile | 8 | 8 | include emacs # requires emacs module in Puppetfile | |
include sparrow # requires sparrow module in Puppetfile | 9 | 9 | include sparrow # requires sparrow module in Puppetfile | |
10 | 10 | |||
$home = '/Users/jbarnette' | 11 | 11 | $home = "/Users/${::luser}" | |
$my = "${home}/my" | 12 | 12 | $my = "${home}/my" | |
$dotfiles = "${my}/dotfiles" | 13 | 13 | $dotfiles = "${my}/dotfiles" | |
14 | 14 | |||
repository { $dotfiles: | 15 | 15 | repository { $dotfiles: | |
source => 'jbarnette/dotfiles', | 16 | 16 | source => 'jbarnette/dotfiles', | |
require => File[$my] | 17 | 17 | require => File[$my] | |
} | 18 | 18 | } | |
} | 19 | 19 | } | |
20 | ``` | |||
21 | ||||
22 | ## Projects | |||
23 | ||||
24 | While you _can_ include projects one by one, sometimes you might just want | |||
25 | all of them. | |||
26 | You can do that easily with: | |||
27 |