Add mco command to master node
Change-Id: I4fc4f164866c874059f07fe104f9e80c7cdc0541 Closes-Bug: #1519910
This commit is contained in:
parent
39dcd26bc3
commit
71ca6b1f04
@ -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: {
|
||||
|
@ -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,
|
||||
|
3
deployment/puppet/nailgun/files/mco_host_only
Normal file
3
deployment/puppet/nailgun/files/mco_host_only
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
# This file is managed by Puppet
|
||||
dockerctl shell astute mco "$@"
|
Loading…
Reference in New Issue
Block a user