-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmisc.sls
49 lines (37 loc) · 987 Bytes
/
misc.sls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
include:
- nginx
{{ sls }} installed packages:
pkg.installed:
- pkgs:
- git
{%- for repo in ("faq", "mp") %}
{{ sls }} {{ repo }} repo:
git.latest:
- name: 'https://github.com/creativecommons/{{ repo }}.git'
- target: /srv/{{ repo }}
- rev: {{ pillar.git_branch }}
- branch: {{ pillar.git_branch }}
- fetch_tags: False
- require:
- pkg: {{ sls }} installed packages
{%- endfor %}
{{ sls }} faq docroot symlink:
file.symlink:
- name: /var/www/html/faq
- target: /srv/faq/faq
- require:
- git: {{ sls }} faq repo
- pkg: nginx installed packages
{{ sls }} platform directory:
file.directory:
- name: /var/www/html/platform
- makedirs: True
- require:
- git: {{ sls }} mp repo
- pkg: nginx installed packages
{{ sls }} mp index symlink:
file.symlink:
- name: /var/www/html/platform/toolkit
- target: /srv/mp/docs
- require:
- file: {{ sls }} platform directory