Commit 78b6fe8a5e257c62a12dd7525f331f1c356f2da0
1 parent
bacf7fd78a
Document modules/projects
Showing 2 changed files with 21 additions and 2 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 | 8 | 8 | include emacs | |
9 | 9 | |||
$home = '/Users/jbarnette' | 10 | 10 | $home = '/Users/jbarnette' | |
$my = "${home}/my" | 11 | 11 | $my = "${home}/my" | |
$dotfiles = "${my}/dotfiles" | 12 | 12 | $dotfiles = "${my}/dotfiles" | |
13 | 13 | |||
repository { $dotfiles: | 14 | 14 | repository { $dotfiles: | |
source => 'jbarnette/dotfiles', | 15 | 15 | source => 'jbarnette/dotfiles', | |
require => File[$my] | 16 | 16 | require => File[$my] | |
} | 17 | 17 | } |
modules/projects/README.md
File was created | 1 | # Project Manifests | ||
2 | ||||
3 | Project manifests live in `modules/projects/manifests/$project.pp`. A | |||
4 | simple project manifest example: | |||
5 | ||||
6 | ```puppet | |||
7 | class projects::boxen { | |||
8 | $dir = "${boxen::config::srcdir}/boxen" | |||
9 | ||||
10 | repository { $dir: | |||
11 | source => 'boxen/boxen' | |||
12 | } | |||
13 | ||||
14 | ruby::local { $dir: | |||
15 | version => 'system', |