Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. file_roots:
  2. base:
  3. - /srv/salt
  4. env1:
  5. - /srv/salt/env1
  6.  
  7. .
  8. ├── base
  9. ├── env1
  10. │   └── domain1
  11. │   ├── init.sls
  12. │   └── nginx.conf
  13. └── top.sls
  14.  
  15. env1:
  16. '*':
  17. - env1.domain1
  18.  
  19. /etc/nginx/nginx.conf:
  20. file.managed:
  21. - source: salt://env1/domain1/nginx.conf
  22.  
  23. salt '*' state.sls env1.domain1
  24.  
  25. # salt '*' state.highstate
  26. myHost:
  27. Data failed to compile:
  28. ----------
  29. No matching sls found for 'env1.domain1' in env 'env1'
  30.  
  31. - source: salt://domain1/nginx.conf
  32.  
  33. - source: salt://env1/domain1/nginx.conf
  34.  
  35. Comment: Source file salt://domain1/nginx.conf not found
  36.  
  37. file_roots:
  38. base:
  39. - /srv/salt/base
  40. env1:
  41. - /srv/salt/env1
  42.  
  43. .
  44. ├── base
  45. │   └── init.sls
  46. ├── conf_template
  47. ├── env1
  48. │   └── domain1
  49. │   ├── init.sls
  50. │   └── nginx.conf
  51. └── top.sls
  52.  
  53. base:
  54. '*':
  55. - init
  56. env1:
  57. '*':
  58. - domain1
  59.  
  60. /etc/nginx/nginx.conf:
  61. file.managed:
  62. - source: salt://domain1/nginx.conf
  63.  
  64. salt '*' state.sls env1.domain1
  65. myHost:
  66. Data failed to compile:
  67. ----------
  68. No matching sls found for 'env1.domain1' in env 'base'
  69.  
  70. env1:
  71. '*':
  72. - domain1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement