Blame view

modules/projects/README.md 855 Bytes
78b6fe8a5   John Barnette   Document modules/...
1
2
3
4
5
6
  # Project Manifests
  
  Project manifests live in `modules/projects/manifests/$project.pp`. A
  simple project manifest example:
  
  ```puppet
7cf13dcb9   Will Farrington   Ohai, some boxen:...
7
8
9
  class projects::trollin {
    include icu4c
    include phantomjs
cbb0b6546   Will Farrington   Update docs a bit...
10

7cf13dcb9   Will Farrington   Ohai, some boxen:...
11
12
13
14
15
16
17
18
    boxen::project { 'trollin':
      dotenv        => true,
      elasticsearch => true,
      mysql         => true,
      nginx         => true,
      redis         => true,
      ruby          => '1.9.3',
      source        => 'boxen/trollin'
78b6fe8a5   John Barnette   Document modules/...
19
20
21
    }
  }
  ```
7cf13dcb9   Will Farrington   Ohai, some boxen:...
22
23
24
25
26
27
28
29
  
  With the above, as long as our app is configured to listen on a **socket** at
  `"#{ENV['BOXEN_SOCKET_DIR']}"/trollin`, you'll now be able to run its local
  server and visit http://trollin.dev/ to access the app in dev.
  
  For further documentation on how to use the `boxen::project` type,
  take a look at the documentation in the
  [source](https://github.com/boxen/puppet-boxen/blob/master/manifests/project.pp#L1-L46).