init project

This commit is contained in:
Jeffrey Zhang 2014-10-15 15:33:43 +08:00
commit 7f37291ae3
4 changed files with 25 additions and 0 deletions

0
README.md Normal file

17
horizon/init.sls Normal file

@ -0,0 +1,17 @@
{% from "horizon/map.jinja" import horizon with context %}
horizon:
pkg.installed:
- refresh: False
- pkgs: {{ horizon.pkgs }}
service.running:
- enable: True
- reload: True
- names: {{ horizon.services }}
- require:
- pkg: horizon
- watch:
- file: /etc/openstack-dashboard/ubuntu_theme.py
/etc/openstack-dashboard/ubuntu_theme.py:
file.absent

8
horizon/map.jinja Normal file

@ -0,0 +1,8 @@
{% set horizon=salt["grains.filter_by"]({
"Debian":{
"pkgs": ["openstack-dashboard", "apache2"],
"services": ["apache2"]
}
}) %}
{#- vim:ft=sls
-#}

0
pillar.example Normal file