Skip to content

Commit

Permalink
Fixing grain os_family
Browse files Browse the repository at this point in the history
  • Loading branch information
benhosmer committed Dec 5, 2012
1 parent 24b4f59 commit ea43e67
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions small/mongodb-10gen/init.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% if grains['os'] == 'Ubuntu' %}
mongodb-10gen:
{% if grains['os'] == 'Ubuntu' %}
cmd.run:
- name: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
- unless: apt-key list | grep -q 7F0CEB10
Expand All @@ -10,13 +10,14 @@ mongodb-10gen:
- name: /etc/apt/sources.list.d/10gen.list
- source: salt://mongodb-10gen/10gen.list
- skip_verify: True
{% elif grains['os'] == 'RedHat' %}
{% elif grains['os_family'] == 'RedHat' %}
mongo-10gen:
file:
- managed
- name: /etc/yum.repos.d/10gen.repo
- source: salt://mongodb-10gen/10gen.repo
- skip_verify: True
{% endif %}
{% endif %}
pkg:
- installed
- refresh: True
- refresh: True

0 comments on commit ea43e67

Please sign in to comment.