Skip to content

Commit

Permalink
adding rubygems sample with pillar data
Browse files Browse the repository at this point in the history
  • Loading branch information
benhosmer committed Feb 15, 2013
1 parent ea43e67 commit 5c58544
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
17 changes: 17 additions & 0 deletions small/rubygems/pillar/gems.sls
@@ -0,0 +1,17 @@
rgems:
- sinatra
- rest-client
- haml
- json
- activerecord
- json_pure
- journey
- fastercsv
- geojson
- georuby
- pg
- rdoc
- bcrypt-ruby
- passenger


3 changes: 3 additions & 0 deletions small/rubygems/pillar/top.sls
@@ -0,0 +1,3 @@
base:
'*':
- gems
8 changes: 8 additions & 0 deletions small/rubygems/salt/rubygems/init.sls
@@ -0,0 +1,8 @@
# Install the gems listed in pillar data.

install-gems:
{% for rgems in pillar['gems'] %}
module.run:
- name: gem.install
- gems: {{ rgems }}
{% endfor %}

0 comments on commit 5c58544

Please sign in to comment.