Blame view

modules/people/README.md 846 Bytes
3a47d364c   Jianwei Han   Remove caches for...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  # Personal Manifests
  
  Per-user manifests live in `modules/people/manifests/$login.pp`, where
  `$login` is a GitHub login. A simple user manifest example:
  
  ```puppet
  class people::jbarnette {
    include emacs   # requires emacs module in Puppetfile
    include sparrow # requires sparrow module in Puppetfile
  
    $home     = "/Users/${::boxen_user}"
    $my       = "${home}/my"
    $dotfiles = "${my}/dotfiles"
    
    file { $my:
      ensure  => directory
    }
  
    repository { $dotfiles:
      source  => 'jbarnette/dotfiles',
      require => File[$my]
    }
  }
  ```
  
  Note that if your GitHub username contains dashes, you should replace them by underscores in both the manifest name and the class name.
  
  ## Projects
  
  While you _can_ include projects one by one, sometimes you might just want
  all of them.
  You can do that easily with:
  
  ```
  include projects::all
  ```