Forge Home

mosh

Puppet module for Mosh

10,412 downloads

10,412 latest version

1.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.1.0 (latest)
released Apr 10th 2012

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'garthk-mosh', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add garthk-mosh
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install garthk-mosh --version 0.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: mosh

Documentation

garthk/mosh — version 0.1.0 Apr 10th 2012

Puppet module for Mosh.

Installation

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

Usage

include mosh

The class will:

  • Perform apt-get update
  • Install python-software-properties for add-apt-repository
  • Add ppa:keithw/mosh to your apt sources via a file in /etc/apt/sources.list.d
  • Import Keith's key from keyserver.ubuntu.com
  • Perform apt-get update again
  • 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