Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Puppet module for Mosh
branch: master
Failed to load latest commit information.
manifests
tests First working version.
.gitignore First working version.
Makefile First working version.
Modulefile First working version.
README.md
Vagrantfile First working version.

README.md

Puppet module for Mosh.

Installation

cd /etc/puppet/modules
git clone git://github.com/garthk/puppet-mosh mosh

Usage

include mosh

The class will:

  • Import Keith's key from keyserver.ubuntu.com
  • Add ppa:keithw/mosh to your apt sources via a file in /etc/apt/sources.list.d
  • Perform apt-get update
  • Install language-pack-en-base
  • Install Mosh

WARNING: You might think of installing language-pack-en-base as damage if you prefer your servers speaking another language. See "Help Wanted", below.

Testing:

Smoke Testing

  • make test or make smoke to perform a simple smoke test

Vagrant

  • Install Mosh and Vagrant

  • Get the lucid32 box (safe even if you already have it):

    vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
    
  • Launch the virtual machine:

    vagrant up
    vagrant ssh
    
  • Once at the vagrant@mosh:~$ prompt:

    LANG=en_US.UTF-8 mosh-server
    
  • Note the port and key after the MOSH CONNECT line, which might be:

    MOSH CONNECT 60001 RandomLookingKey
    
  • Back on your local machine, run mosh-client with the correct key and port, e.g.:

      MOSH_KEY=RandomLookingKey mosh-client 192.168.31.44 60001
    

Help Wanted

Please get in touch if you find any way to either:

  • Enable LANG=en_US.UTF-8 without instlling language-pack-en-base
  • vagrant ssh -c "LANG=en_US.UTF-8 mosh-server" without it responding with ioctl TIOCGWINSZ: Invalid argument
  • Add an -F configfile argument to mosh, to be passed through to ssh
  • In general, get mosh working with vagrant ssh so the procedure above isn't so torturous
Something went wrong with that request. Please try again.