diff options
Diffstat (limited to 'facts.py')
-rw-r--r-- | facts.py | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -54,6 +54,8 @@ cluster_map = { 'pacemaker[cman]': (1, 1, 4), #--- 'pkg::mysql': 'mysql-server', + #--- + 'cmd::pkg-install': 'yum install -y {packages}', }), ((14, ), { 'corosync': (1, 4), @@ -84,6 +86,8 @@ cluster_map = { 'pkg::mysql': 'mysql-server', 'pkg::postgresql': 'postgresql-server', 'pkg::virsh': 'libvirt-client', + #--- + 'cmd::pkg-install': 'yum install -y {packages}', }), ((6, 2), { 'corosync': (1, 4), @@ -374,6 +378,13 @@ def package(which, *sys_id): return _find_meta('pkg', which, *sys_id, default=which) +def cmd_pkg_install(pkgs, *sys_id): + cmd = _find_meta('cmd', 'pkg-install', *sys_id) + if cmd: + cmd = cmd.format(packages=' '.join(pkgs)) + return cmd + + cluster_systems = (cluster_pcs_flatiron, cluster_pcs_needle) |