Skip to content

Commit

Permalink
Merge pull request #299 from arthurlogilab/patch-1
Browse files Browse the repository at this point in the history
[docs/gettingstarted] add interactive debug instructions
  • Loading branch information
s0undt3ch authored Jun 12, 2020
2 parents 414cacf + a6b94b4 commit c51f24e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/gettingstarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,19 @@ With either of these, test-kitchen will do the following

If `kitchen test` was run, then the `kitchen list` command will show all the instances and what the result of their last command was.

## Run test interactivaly ##

If your `converge` or `verify` step is failing, by default `kitchen` will keep your VM running, so you can login using
ssh and debug things from there. To run the `state.apply` that converge is doing, run the following :

kitchen login
sudo salt-call --config-dir=/tmp/kitchen/etc/salt/ --log-level=debug state.apply

If you are using the `minion_id` argument run :

kitchen login
sudo salt-call --config-dir=/tmp/kitchen/etc/salt/ --log-level=debug --id=salt-minion-id state.apply

## Closing ##

This instance is now tested. For more information about `kitchen-salt` and `test-kitchen` in general please see the following links:
Expand Down

0 comments on commit c51f24e

Please sign in to comment.