Skip to content

Instantly share code, notes, and snippets.

@ferki
Created July 6, 2016 13:34
Show Gist options
  • Save ferki/2e7bfda82808be13d10e1382ff4dc847 to your computer and use it in GitHub Desktop.
Save ferki/2e7bfda82808be13d10e1382ff4dc847 to your computer and use it in GitHub Desktop.
rex custom cmdb
set cmdb => {
type => 'YAML',
path => sub {
my ( $self, $item, $server ) = @_;
return ( "cmdb/$server.yml", "cmdb/default.yml" );
},
merge_behavior => 'LEFT_PRECEDENT',
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment