salting things up in the sysadmin s world
play

Salting things up in the sysadmin's world Juan Manuel Santos Who? - PowerPoint PPT Presentation

Salting things up in the sysadmin's world Juan Manuel Santos Who? (boring part) Juan Manuel Santos godlike64 on github / gmail / twitter godlike on freenode Information Systems Engineer / RHCA TL - STSE @ Red Hat Need beer


  1. Salting things up in the sysadmin's world Juan Manuel Santos

  2. Who? (boring part) ● Juan Manuel Santos ● godlike64 on github / gmail / twitter ● godlike on freenode ● Information Systems Engineer / RHCA ● TL - STSE @ Red Hat ● Need beer to survive, HALP! 2015-07-21

  3. WHY? 2015-07-21

  4. 2015-07-21

  5. 2015-07-21

  6. 2015-07-21

  7. 2015-07-21

  8. WHY? 1)Quantity 2015-07-21

  9. 2015-07-21

  10. 12712414 ● SLOC count for Linux kernel 3.19 2015-07-21

  11. WHY? 1)Quantity 2)Complexity 2015-07-21

  12. Sysadmins are lazy 2015-07-21

  13. How it all began 2015-07-21

  14. 2015-07-21

  15. #plzhelp 2015-07-21

  16. 2015-07-21

  17. 2015-07-21

  18. 2015-07-21

  19. 2015-07-21

  20. 2015-07-21

  21. 2015-07-21

  22. ? :) 2015-07-21

  23. 2015-07-21

  24. 2015-07-21

  25. Basics 2015-07-21

  26. Basics 2015-07-21

  27. Terminology ● Master - Minion ● State file --> State ● Highstate ● Grains / Pillar ● Matching (targeting) ● ... and stuff 2015-07-21

  28. Terminology ● Master: the one who rules them all ● Minions: – ID – [Nodegroup] – Grains 2015-07-21

  29. Example setup ● Master: gantrithor ● Minions: – everybody else 2015-07-21

  30. States & Highstates 2015-07-21

  31. States ● Defined by SLS (SaLt State) files ● Reside in the filesystem ● In /etc/salt/master: file_roots: <environment>: - <path> 2015-07-21

  32. Top file (top.sls) ● Entry point for environment ● Host matching <environment>: <match>: - match: <match type> - [state trees] 2015-07-21

  33. 2015-07-21

  34. States ● Where the magic happens ● Similar syntax to top.sls <identifier>: <type>: - parameters 2015-07-21

  35. States 2015-07-21

  36. States 2015-07-21

  37. States 2015-07-21

  38. States 2015-07-21

  39. Highstate ● salt '*' state.highstate 1) Minions download top.sls 2) Minions attempt to match 3) If a match is found, modules are downloaded, compiled & executed 2015-07-21

  40. Highstate 2015-07-21

  41. Matching & Nodegroups 2015-07-21

  42. Matching ● ID ● Nodegroup ● Subnet/IP ● Grains ● Compound 2015-07-21

  43. Matching 2015-07-21

  44. Nodegroups 2015-07-21

  45. Nodegroups 2015-07-21

  46. Nodegroups ● Flexibility! nodegroups: group1: 'L@foo.domain.com,bar.domain.com' group2: 'G@os:Debian and foo.domain.com' group3: 'G@os:Debian and N@group1' 2015-07-21

  47. Grains & Pillars 2015-07-21

  48. Grains ● Bits & pieces of information ● Generated/loaded on minion startup ● salt [...] grains.ls ● salt [...] grains.items ● 50+ grains shipped ● Moar flexibility: write your own! 2015-07-21

  49. Grains 2015-07-21

  50. Grains 2015-07-21

  51. Pillar ● Also data ● Defined on the master ● In /etc/salt/master: pillar_roots: <environment>: - <path> 2015-07-21

  52. Pillar ● Grains --> data retrieved from minions ● Pillar --> data sent to minions 2015-07-21

  53. Pillar iic 2015-07-21

  54. Pillar 2015-07-21

  55. Pillar 2015-07-21

  56. Pillar 2015-07-21

  57. Docs! ● http://docs.saltstack.com/ 2015-07-21

  58. Thank you! ● Questions anyone? 2015-07-21

Recommend


More recommend