diff options
author | elijah <elijah@riseup.net> | 2015-02-03 12:33:02 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2015-02-03 12:33:02 -0800 |
commit | b2c8700680b5b6d45a3760e447c4ca999f07336a (patch) | |
tree | 86ec7e0719cfca923ad9ace14a86261ef310170b /docs/platform/guide/nodes.md | |
parent | 6ad1e45761d61dab5d3fb3db9495bf22b841c309 (diff) |
added platform environments page
Diffstat (limited to 'docs/platform/guide/nodes.md')
-rw-r--r-- | docs/platform/guide/nodes.md | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/docs/platform/guide/nodes.md b/docs/platform/guide/nodes.md index 1cfb156..30bf5b3 100644 --- a/docs/platform/guide/nodes.md +++ b/docs/platform/guide/nodes.md @@ -162,7 +162,17 @@ Disabling Nodes There are two ways to temporarily disable a node: -**Option 1: enabled == false** +**Option 1: disabled environment** + +You can assign an environment to the node that marks it as disabled. Then, if you use environment pinning, the node will be ignored when you deploy. For example: + + { + "environment": "disabled" + } + +Then use `leap env pin ENV` to pin the environment to something other than 'disabled'. This only works if all the other nodes are also assigned to some environment. + +**Option 2: enabled == false** If a node has a property `enabled` set to false, then the `leap` command will skip over the node and pretend that it does not exist. For example: @@ -172,6 +182,6 @@ If a node has a property `enabled` set to false, then the `leap` command will sk "enabled": false } -**Options 2: no-deploy** +**Options 3: no-deploy** If the file `/etc/leap/no-deploy` exists on a node, then when you run the commmand `leap deploy` it will halt and prevent a deploy from going through (if the node was going to be included in the deploy). |