|
1 | 1 | Pack Management Transition |
2 | 2 | ========================== |
3 | 3 |
|
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 |
6 | 6 | pack schema and conventions. These changes may require users |
7 | 7 | to update their custom :doc:`/packs` which do not confirm. |
8 | 8 | All community packs are updated to work with |st2| 2.1, |
@@ -46,19 +46,22 @@ Using StackStorm Exchange with pre-2.1 |st2| |
46 | 46 |
|
47 | 47 | If you are on 2.0 or ealier versions of |st2|, you can still get the packs |
48 | 48 | 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: :: |
52 | 52 |
|
53 | 53 | st2 --version |
54 | 54 | 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 |
56 | 56 |
|
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 |
58 | 60 | directory name matches the pack ``ref``: :: |
59 | 61 |
|
60 | 62 | cd /opt/stackstorm/packs |
61 | 63 | git clone https://github.com/StackStorm-Exchange/stackstorm-cloudflare.git cloudflare |
| 64 | + chown -R root:st2packs cloudflare |
62 | 65 | st2 run packs.setup_virtualenv cloudflare |
63 | 66 | st2ctl reload |
64 | 67 |
|
|
0 commit comments