Advertisement
Guest User

Untitled

a guest
Jul 14th, 2014
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.45 KB | None | 0 0
  1. ### /srv/base/salt/top.sls
  2. base:
  3.   '*':
  4.    - essential
  5.  
  6.   'master:localhost':
  7.     - match: grain
  8.     - cloud
  9.  
  10.   'G@fqdn:*.example.org or @fqdn:*ec2*':
  11.     - match: compound
  12.     - fail2ban.config
  13.  
  14.   'G@oscodename:precise and G@osarch:amd64':
  15.     - match: compound
  16.     - docker.precise
  17.  
  18.   'G@oscodename:trusty and G@osarch:amd64':
  19.     - match: compound
  20.     - docker
  21.  
  22. prod:
  23.   '*.example.com':
  24.    - users
  25.     - ssh
  26.  
  27.   'db.example.com':
  28.    - mysql.server
  29.     - mysql.client
  30.  
  31.   'web.example.com':
  32.    - mysql.client
  33.  
  34. ### /srv/base/pillar/top.sls
  35. base:
  36.   '*':
  37.    - failtoban
  38.  
  39. prod:
  40.   '*.example.com':
  41.    - users
  42.     - hosts
  43.  
  44.   'db.example.com':
  45.    - mysql
  46.  
  47.  
  48. ### /srv/prod/pillar/mysql.sls
  49. mysql:
  50.   server:
  51.     bind-address: 0.0.0.0
  52.     port: 3306
  53.     user: mysql
  54.  
  55.  
  56. ### /srv/prod/pillar/(hosts|users).sls
  57. ...
  58.  
  59. ### master.conf
  60. file_roots:
  61.   base:
  62.    - /srv/base/salt
  63.  
  64.   prod:
  65.    - /srv/prod/salt
  66.     - /srv/base/salt
  67.  
  68.   dev:
  69.    - /srv/dev/salt
  70.     - /srv/prod/salt
  71.     - /srv/base/salt
  72.  
  73. fileserver_backend:
  74. - roots
  75.  - git
  76.  
  77. gitfs_remotes:
  78.  - git://github.com/saltstack-formulas/fail2ban-formula.git
  79.   - git://github.com/saltstack-formulas/users-formula.git
  80.   - git://github.com/saltstack-formulas/mysql-formula.git
  81.  
  82. pillar_roots:
  83.   base:
  84.    - /srv/base/pillar
  85.  
  86.   prod:
  87.    - /srv/prod/pillar
  88.     - /srv/base/pillar
  89.  
  90.   dev:
  91.    - /srv/dev/pillar
  92.     - /srv/prod/pillar
  93.     - /srv/base/pillar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement