Sparrowdo module to run goss scenarios
Perl6
Latest commit fbabdb8 Mar 10, 2017 @melezhik add link to doc
Permalink
Failed to load latest commit information.
lib/Sparrowdo ready to release?! Mar 10, 2017
t add files Mar 10, 2017
.gitignore add git ignore Mar 10, 2017
.travis.yml add files Mar 10, 2017
META6.json update Mar 10, 2017
README add link to doc Mar 10, 2017
README.md ready to release?! Mar 10, 2017
mysql.goss.yaml add example files Mar 10, 2017
sparrowfile ready to release?! Mar 10, 2017

README.md

SYNOPSIS

Sparrowdo module to run goss scenarios.

Travis build status

Build Status

INSTALL

$ panda install Sparrowdo::Goss

USAGE

Here are few examples.

Install goss binary

$ cat sparrowfile

module_run 'Goss', %( action => 'install' ); # will install into default location - /usr/bin/goss

module_run 'Goss', %( action => 'install', install_path => '/home/user' ); # will install into users location - /home/user/bin

Runs goss scenarios

Pass goss ymal as is:

$ cat sparrowfile

module_run 'Goss', %( title => 'mysql checks',  yaml => << q:to/HERE/);
  port:
    tcp:3306:
      listening: true
      ip:
      - 127.0.0.1
  service:
    mysql:
      enabled: true
      running: true
  process:
    mysqld:
      running: true
HERE

Use your favorite templater to populate goss yamls:

$ cat mysql.goss.yaml

  port:
    tcp:{{port}}:
      listening: true

$ cat sparrowfile

use Template::Mustache;

module_run 'Goss', %( 
  title => 'mysql tcp port check',  
  yaml => Template::Mustache.render('mysql.goss.yaml'.IO.slurp, {  port => '3306' })
);

Sets path to goss binary:

module_run 'Goss', %( install_path => '/home/user', yaml => '...', title => '...'  );

Author

Alexey Melezhik

See also

goss