Skip to content

Commit 0171f33

Browse files
author
Dmitri Zimin(e)
authored
Merge pull request #334 from StackStorm/DZ/pre_2.1_use
Better story for pre 2.1 users
2 parents 1b8a270 + 80f4c07 commit 0171f33

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

docs/source/reference/pack_management_transition.rst

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Pack Management Transition
22
==========================
33

4-
.. warning:: With new pack management and
5-
`StackStorm Exchange <https://exchange.stackstorm.org/>`__, |st2| begins to validate and enforce
4+
.. warning:: In 2.1, with introduction of the new pack management and
5+
`StackStorm Exchange <https://exchange.stackstorm.org/>`__, |st2| validates and enforces
66
pack schema and conventions. These changes may require users
77
to update their custom :doc:`/packs` which do not confirm.
88
All community packs are updated to work with |st2| 2.1,
@@ -46,19 +46,22 @@ Using StackStorm Exchange with pre-2.1 |st2|
4646

4747
If you are on 2.0 or ealier versions of |st2|, you can still get the packs
4848
from `StackStorm Exchange <https://exchange.stackstorm.org/>`__. Using ``st2 run pack install``,
49-
specify ``repo_url`` as ``http://index.stackstorm.org/repos/PACK_REF``, where
50-
``PACK_REF`` matches a ``ref`` field of the pack. For example, for "cloudflare" pack, it
51-
will be: ::
49+
specify ``repo_url`` as ``http://index.stackstorm.org/repos/PACK``, where
50+
``PACK`` is pack's ``ref``, that by convention is a shortened name of a pack
51+
repo (without `stackstorm-`). For example, for "cloudflare" pack, it will be: ::
5252

5353
st2 --version
5454
st2 2.0.1
55-
st2 run packs.install packs=cloudflare repo_url="http://index.stackstorm.org/repos/cloudflare"
55+
st2 run packs.install packs=cloudflare repo_url=StackStorm-exchange/cloudflare
5656

57-
Or you can just `git clone` them in place, making sure that the pack
57+
You use Exchange by default, update the ``repo_url`` default in ``/opt/stackstorm/packs/packs/actions/download.yaml``.
58+
59+
Alternatively, you can just `git clone` them in place, making sure that the pack
5860
directory name matches the pack ``ref``: ::
5961

6062
cd /opt/stackstorm/packs
6163
git clone https://github.com/StackStorm-Exchange/stackstorm-cloudflare.git cloudflare
64+
chown -R root:st2packs cloudflare
6265
st2 run packs.setup_virtualenv cloudflare
6366
st2ctl reload
6467

0 commit comments

Comments
 (0)