eos.rst 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. =========================================
  2. Arista EOS Salt minion installation guide
  3. =========================================
  4. The Salt minion for Arista EOS is distributed as a SWIX extension and can be installed directly on the switch. The EOS network operating system is based on old Fedora distributions and the installation of the ``salt-minion`` requires backports. This SWIX extension contains the necessary backports, together with the Salt basecode.
  5. .. note::
  6. This SWIX extension has been tested on Arista DCS-7280SE-68-R, running EOS 4.17.5M and vEOS 4.18.3F.
  7. Important Notes
  8. ===============
  9. This package is in beta, make sure to test it carefully before running it in production.
  10. If confirmed working correctly, please report and add a note on this page with the platform model and EOS version.
  11. If you want to uninstall this package, please refer to the uninstalling_ section.
  12. Installation from the Official SaltStack Repository
  13. ===================================================
  14. Download the swix package and save it to flash.
  15. .. code-block:: bash
  16. veos#copy https://salt-eos.netops.life/salt-eos-latest.swix flash:
  17. veos#copy https://salt-eos.netops.life/startup.sh flash:
  18. Install the Extension
  19. =====================
  20. Copy the Salt package to extension
  21. .. code-block:: bash
  22. veos#copy flash:salt-eos-latest.swix extension:
  23. Install the SWIX
  24. .. code-block:: bash
  25. veos#extension salt-eos-latest.swix force
  26. Verify the installation
  27. .. code-block:: bash
  28. veos#show extensions | include salt-eos
  29. salt-eos-2017-07-19.swix 1.0.11/1.fc25 A, F 27
  30. Change the Salt master IP address or FQDN, by edit the variable (SALT_MASTER)
  31. .. code-block:: bash
  32. veos#bash vi /mnt/flash/startup.sh
  33. Make sure you enable the eAPI with unix-socket
  34. .. code-block:: console
  35. veos(config)#management api http-commands
  36. protocol unix-socket
  37. no shutdown
  38. Post-installation tasks
  39. =======================
  40. Generate Keys and host record and start Salt minion
  41. .. code-block:: bash
  42. veos#bash
  43. #sudo /mnt/flash/startup.sh
  44. ``salt-minion`` should be running
  45. Copy the installed extensions to boot-extensions
  46. .. code-block:: bash
  47. veos#copy installed-extensions boot-extensions
  48. Apply event-handler to let EOS start salt-minion during boot-up
  49. .. code-block:: console
  50. veos(config)#event-handler boot-up-script
  51. trigger on-boot
  52. action bash sudo /mnt/flash/startup.sh
  53. For more specific installation details of the ``salt-minion``, please refer to :ref:`Configuring Salt<configuring-salt>`.
  54. .. _uninstalling:
  55. Uninstalling
  56. ============
  57. If you decide to uninstall this package, the following steps are recommended for safety:
  58. 1. Remove the extension from boot-extensions
  59. .. code-block:: bash
  60. veos#bash rm /mnt/flash/boot-extensions
  61. 2. Remove the extension from extensions folder
  62. .. code-block:: bash
  63. veos#bash rm /mnt/flash/.extensions/salt-eos-latest.swix
  64. 2. Remove boot-up script
  65. .. code-block:: console
  66. veos(config)#no event-handler boot-up-script
  67. Additional Information
  68. ======================
  69. This SWIX extension contains the following RPM packages:
  70. .. code-block:: text
  71. libsodium-1.0.11-1.fc25.i686.rpm
  72. libstdc++-6.2.1-2.fc25.i686.rpm
  73. openpgm-5.2.122-6.fc24.i686.rpm
  74. python-Jinja2-2.8-0.i686.rpm
  75. python-PyYAML-3.12-0.i686.rpm
  76. python-babel-0.9.6-5.fc18.noarch.rpm
  77. python-backports-1.0-3.fc18.i686.rpm
  78. python-backports-ssl_match_hostname-3.4.0.2-1.fc18.noarch.rpm
  79. python-backports_abc-0.5-0.i686.rpm
  80. python-certifi-2016.9.26-0.i686.rpm
  81. python-chardet-2.0.1-5.fc18.noarch.rpm
  82. python-crypto-1.4.1-1.noarch.rpm
  83. python-crypto-2.6.1-1.fc18.i686.rpm
  84. python-futures-3.1.1-1.noarch.rpm
  85. python-jtextfsm-0.3.1-0.noarch.rpm
  86. python-kitchen-1.1.1-2.fc18.noarch.rpm
  87. python-markupsafe-0.18-1.fc18.i686.rpm
  88. python-msgpack-python-0.4.8-0.i686.rpm
  89. python-napalm-base-0.24.3-1.noarch.rpm
  90. python-napalm-eos-0.6.0-1.noarch.rpm
  91. python-netaddr-0.7.18-0.noarch.rpm
  92. python-pyeapi-0.7.0-0.noarch.rpm
  93. python-salt-2017.7.0_1414_g2fb986f-1.noarch.rpm
  94. python-singledispatch-3.4.0.3-0.i686.rpm
  95. python-six-1.10.0-0.i686.rpm
  96. python-tornado-4.4.2-0.i686.rpm
  97. python-urllib3-1.5-7.fc18.noarch.rpm
  98. python2-zmq-15.3.0-2.fc25.i686.rpm
  99. zeromq-4.1.4-5.fc25.i686.rpm