diff --git a/doc/contents.rst b/doc/contents.rst index ff1ad97267c..2509c5524fa 100644 --- a/doc/contents.rst +++ b/doc/contents.rst @@ -27,6 +27,7 @@ Salt Table of Contents topics/proxyminion/index topics/network_automation/index topics/virt/index + topics/packaging/index ref/cli/index ref/pillar/index ref/tops/index diff --git a/doc/topics/packaging/index.rst b/doc/topics/packaging/index.rst new file mode 100644 index 00000000000..326b8f1665a --- /dev/null +++ b/doc/topics/packaging/index.rst @@ -0,0 +1,38 @@ +.. _pkging-introduction: + +================ +Onedir Packaging +================ + +Relenv onedir packagig +====================== + +Starting in 3006, only onedir packaging will be available. The 3006 onedir packages +are built with the `relenv `_ tool. + +How to build rpm packages +========================= + +You only need to run rpmbuild in the Salt repo: + +.. code-block:: bash + + # rpmbuild -bb --define="_salt_src $(pwd)" $(pwd)/pkg/rpm/salt.spec + + +How to build deb packages +========================= + +You only need to add a symlink and run debuild in the Salt repo: + +.. code-block:: bash + + # ln -s pkg/deb/debian debian + # debuild -uc -us + + +How to access python binary +=========================== + +The python library is available in the install directory of the onedir package. For example +on linux the default location would be ``/opt/saltstack/salt/bin/python3``.