init project
This commit is contained in:
commit
7f37291ae3
0
README.md
Normal file
0
README.md
Normal file
17
horizon/init.sls
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
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
0
pillar.example
Normal file
Loading…
x
Reference in New Issue
Block a user