Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- structure:
- =====
- .
- └── salt
- ├── apache2
- │ ├── init.sls
- ├── git
- │ └── init.sls
- ├── php5
- │ ├── init.sls
- ├── repo
- │ ├── cr
- │ │ └── internal
- │ │ └── init.sls
- │ └── init.sls
- ├── top.sls
- /salt/top.sls
- =====
- base:
- '*':
- - apache2
- - php5
- - repo
- 'cr*':
- - match: pcre
- /salt/repo/init.sls
- =====
- {% if grains['host'] == 'cri' %}
- {% set new_var = "something" %}
- include:
- - repo.cr.internal
- {% endif %}
- /salt/repo/cr/init.sls
- =====
- ssh://myservergitserver/ots.git:
- git.latest:
- - name: ssh://git@myservergitserver/ots.git
- - rev: {{ new var }}
- - target: /var/www/ots
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement