Advertisement
Guest User

Untitled

a guest
Nov 4th, 2013
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. structure:
  2. =====
  3. .
  4. └── salt
  5.     ├── apache2
  6.     │   ├── init.sls
  7.     ├── git
  8.     │   └── init.sls
  9.     ├── php5
  10.     │   ├── init.sls
  11.     ├── repo
  12.     │   ├── cr
  13.     │   │   └── internal
  14.     │   │       └── init.sls
  15.     │   └── init.sls
  16.     ├── top.sls
  17.  
  18.  
  19. /salt/top.sls
  20. =====
  21. base:
  22.   '*':
  23.    - apache2
  24.     - php5
  25.     - repo
  26.   'cr*':
  27.     - match: pcre
  28.  
  29. /salt/repo/init.sls
  30. =====
  31. {% if grains['host'] == 'cri' %}
  32.   {% set new_var = "something" %}
  33. include:
  34.  - repo.cr.internal
  35. {% endif %}
  36.  
  37. /salt/repo/cr/init.sls
  38. =====
  39. ssh://myservergitserver/ots.git:
  40.   git.latest:
  41.     - name: ssh://git@myservergitserver/ots.git
  42.     - rev: {{ new var }}
  43.     - target: /var/www/ots
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement