Skip to content

Commit

Permalink
client/rpms: allow to disable ncm-cdispd/cdp-listend installation (qu…
Browse files Browse the repository at this point in the history
…attor#163)

* client/rpms: allow to disable ncm-cdispd/cdp-listend installation

- Useful when Quattor is used to manage a VM image rather than a machine
  • Loading branch information
jouvin authored and jrha committed Nov 24, 2017
1 parent 8b8737c commit 757d4ef
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions quattor/client/rpms.pan
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@

unique template quattor/client/rpms;

@{
descr = variable to enable installation of ncm-cdispd and ccm-listend
values = boolean
default = true
required = No
}
variable QUATTOR_INSTALL_CDISPD ?= true;

include 'quattor/client/version';

'/software/packages' = {
Expand All @@ -15,11 +23,14 @@ include 'quattor/client/version';
};

# Quattor
pkg_repl('cdp-listend',QUATTOR_PACKAGES_VERSION,'noarch');
pkg_repl('ncm-cdispd',QUATTOR_PACKAGES_VERSION,'noarch');
pkg_repl('ncm-ncd',QUATTOR_PACKAGES_VERSION,'noarch');
pkg_repl('ncm-query',QUATTOR_PACKAGES_VERSION,'noarch');
pkg_repl('ncm-spma',QUATTOR_PACKAGES_VERSION,'noarch');

if ( QUATTOR_INSTALL_CDISPD ) {
pkg_repl('cdp-listend', QUATTOR_PACKAGES_VERSION, 'noarch');
pkg_repl('ncm-cdispd', QUATTOR_PACKAGES_VERSION, 'noarch');
};

SELF;
};

0 comments on commit 757d4ef

Please sign in to comment.