Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.
/ vagrant-kick Public archive

A small plugin for vagrant to kick off a bunch of tests against vagrant vm's.

License

Notifications You must be signed in to change notification settings

arioch/vagrant-kick

Repository files navigation

Basic usage

$ ls vagrantproject/
Vagrantfile
tests/

$ ls tests/
node01.local
node01.ssh
node02.local
node02.ssh

$ cat tests/node01.local
check_http -H 192.168.1.10 -p 80

$ cat tests/node01.ssh
uptime
facter puppetversion
facter facterversion

$ vagrant kick
[node01] REMOTE
[node01] uptime
[node01] 23:47:27 up  2:36,  0 users,  load average: 0.00, 0.00, 0.00


[node01] facter puppetversion
[node01] 2.6.6


[node01] facter facterversion
[node01] 1.6.0


[node01] LOCAL
[node01] check_http -H 192.168.1.10 -p 80
CRITICAL - Socket timeout after 10 seconds

Local tests

Anything inside $vmname.local will be executed on your local workstation.
This could be used to test if certain ports or services are exposed from the virtual machine using e.g. Nagios plugins or nmap.

Remote tests

Anything you put inside $vmname.local will be executed on your vm called $vmname, using SSH.
The following test...

$ cat tests/node01.ssh
uptime

would return the same output as...

$ ssh 192.168.1.10 "uptime"

Installation using rubygems

$ sudo gem install vagrant-kick

Installation using source

$ rake install
$ ls pkg/
vagrant-kick-0.0.1.gem
$ sudo gem install pkg/vagrant-kick-0.0.1.gem

About

A small plugin for vagrant to kick off a bunch of tests against vagrant vm's.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages