Skip to content

mostlycoolmark/saltstack_tmate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

saltstack_tmate

This is a simple tmate execution module for saltstack that can be used for installing tmate and opening a tmate session.

This can be useful for controlling minions behind a firewall. You can now run tmate.new_session against a target and it will return the session name so that you can ssh into it.

root@saltmaster:~# salt saltminion tmate.new_session
saltminion:
    ssh [email protected]

Additionally, you can view open tmate sessions on a minion:

root@saltmaster:~# salt saltminion tmate.list_sessions
saltminion:
    ssh [email protected]

Finally, kill all sessions on a minion

root@saltmaster:~# salt saltminion tmate.killall
saltminion:
    True

installation

Place this file into your execution modules directory (default: /srv/salt/_modules).

Sync the module to your minions:

salt '*' saltutil.sync_modules

About

tmate execution module for saltstack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages