Skip to content

Instantly share code, notes, and snippets.

@ferki
Last active July 6, 2016 13:25
Show Gist options
  • Save ferki/ef3014c68ff10d3a4474d3462bd2e2e0 to your computer and use it in GitHub Desktop.
Save ferki/ef3014c68ff10d3a4474d3462bd2e2e0 to your computer and use it in GitHub Desktop.
dumpcmdb
param: default_value
param: overridden_value
hostparam: another_value
use Rex -feature => ['1.4'];
use DDP;
desc 'Dump CMDB information';
no_ssh task 'dumpcmdb', sub {
my $params = shift;
my $cmdb = get cmdb( $params->{node}, $params->{host} );
p $cmdb;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment