Last active
July 6, 2016 13:25
-
-
Save ferki/ef3014c68ff10d3a4474d3462bd2e2e0 to your computer and use it in GitHub Desktop.
dumpcmdb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param: default_value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param: overridden_value | |
hostparam: another_value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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