Improve the salt-ssh error handling to try and stop JSON rendering errors from halting the salt-ssh run entirely.
Close VT PTY's. Fixes #10404.
Only close FD's if open. Only wait if alive.
Test if we're closing open PTY's
fixing an issue in the debian networking template related to DNS servers.  Since Ubuntu has moved away from /etc/default/networking since the 12.04 release, the build_network_settings doesn't create this file on Ubuntu systems higher than 12.04, the get_network_settings shouldn't return anything including defaults.
Improve the 'running' state's handling of param 0 as well as 'name' kwarg. Enable logging for state.
Use bash for build_shar.sh

Bourne shell doesn't support arrays
SmartOS: run salt minion in an audit context

This fixes an issue @njones11 was having with
multiple cron.present states.

"crontab -l <username>" would fail, so the temp file
would be empty, a given cronjob would go in
and then the "su - <username> crontab <temp file>" would
succeed.

This evaded debugging attempts because if you invoked the salt
minion manually from a login shell, an audit context would
already exist and the "crontab -l <username>" would succeed.

The hint was a message in the debug log of:
[ERROR   ] Command 'crontab -l legion' failed with return code: 1
[ERROR   ] stderr: crontab: The audit context for your shell has not
been set.

We explicitly set up an audit context when launching the salt minion
which allows "crontab -l <username>" to succeed.

This may fix other issues and something similar
should perhaps be applied to pkg/smartos/salt-minion.xml

"5417" was chosen arbitrarily
Merge pull request #13383 from s0undt3ch/issues/10404-vt-ptys-not-released

[DO NOT MERGE] Fix #10404 vt ptys not released
Merge pull request #13557 from panoptix-za/salt-ssh-errorhandling

Improve the salt-ssh error handling
Merge pull request #13563 from garethgreenaway/debian_ip_fixes

Fixes to debian_ip.py and friends.
Merge pull request #13571 from panoptix-za/fix-dockerio-logging-running

Improve the 'running' state
Merge pull request #13572 from terminalmage/update-shar-script

Use bash for build_shar.sh
Merge pull request #13573 from nshalman/smartos-audit-context

SmartOS: run salt minion in an audit context
Fix quoting problem in git.clone
Unit tests for cloud_config function in salt.config.py
Merge pull request #13579 from rallytime/cloud_config_unittests

Unit tests for cloud_config function in salt.config.py
Merge pull request #13577 from Lendar/fix-git-clone-quotes

Fix quoting problem in git.clone