Advertisement
Guest User

smart pilla

a guest
Mar 17th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. consider the following pillar
  2.  
  3. user:
  4. nicolas:
  5. lemail:
  6. - nicolas@gmail.com
  7. - nicolas@yahoo.com
  8. lipv4:
  9. - 10.10.10.11
  10. lssh_key:
  11. - nicolas_2015.pub
  12. - nicolas_2010.pub
  13. carl:
  14. lemail:
  15. - carl.yok@hisemployer.com
  16. - carl@gmail.com
  17. lipv4:
  18. - 10.10.10.12
  19. - 10.10.10.11
  20. lssh_key:
  21. - carl_2010.pub
  22. cedric:
  23. lemail:
  24. - cedric@gmail.com
  25. lipv4:
  26. - 10.10.10.10
  27. lssh_key:
  28. - cedric_2009.pub
  29.  
  30. chantal:
  31. lemail:
  32. - chantal@msn.com
  33. lipv4:
  34. - 10.10.10.14
  35. lssh_key:
  36. - chantal_2015.pub
  37.  
  38. groupuser:
  39. webadmin:
  40. luser
  41. - nicolas
  42. - carl
  43. lemail:
  44. - webadmin@corporate.ch
  45. sysadmin:
  46. luser:
  47. - cedric
  48. - chantal
  49.  
  50. hosttype:
  51. webserver:
  52. lgroup:
  53. - webadmin
  54. luser:
  55. - chantal
  56. emailserver:
  57. luser:
  58. - cedric
  59. - chantal
  60.  
  61.  
  62. host:
  63. www.example.com:
  64. hosttype: webserver
  65. mail.example.com
  66. hosttype: emailserver
  67.  
  68.  
  69. then on some states, I'd like to have a list of all the users,
  70. to add their ip in the firewall or to add their ssh keys on authorized_keys
  71. and so on. The *smart* pillar will provide me for the minion:
  72. www.example.com
  73. luser:
  74. nicolas:
  75. ...
  76. carl:
  77. ..
  78. chantal:
  79. ..
  80.  
  81. and for mail.example.com
  82. luser:
  83. cedric:
  84. ..
  85. chantal:
  86. ..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement