Add mco command to master node

Change-Id: I4fc4f164866c874059f07fe104f9e80c7cdc0541
Closes-Bug: #1519910
This commit is contained in:
Dmitry Teselkin 2015-12-15 16:58:53 +03:00
parent 39dcd26bc3
commit 71ca6b1f04
3 changed files with 13 additions and 1 deletions

View File

@ -61,7 +61,9 @@ if $::osfamily == 'RedHat' {
$use_systemd = false
}
'7': {
$mco_packages = ['rubygem-mcollective-client', 'nailgun-mcagents']
$mco_packages = ['mcollective-client',
'rubygem-mcollective-client',
'nailgun-mcagents']
$use_systemd = true
}
default: {

View File

@ -104,6 +104,13 @@ class { 'osnailyfacter::ssh':
listen_address => [$::fuel_settings['ADMIN_NETWORK']['ipaddress']],
}
file { '/usr/local/bin/mco':
source => 'puppet:///modules/nailgun/mco_host_only',
mode => '0755',
owner => 'root',
group => 'root',
}
if $use_systemd {
class { 'docker::systemd':
release => $::fuel_release,

View File

@ -0,0 +1,3 @@
#!/bin/bash
# This file is managed by Puppet
dockerctl shell astute mco "$@"