activemq-5.5.0-1
CentOS 6.4
foreman-1.2.0-1
mcollective-2.2.4-1
puppet-3.2.2-1
[root@foreman11 ~]# tail /etc/foreman-proxy/settings.yml
:puppet: true
:puppet_conf: /etc/puppet/puppet.conf
:puppet_provider: mcollective
Where our proxy log files are stored
filename or STDOUT
:log_file: /var/log/foreman-proxy/proxy.log
valid options are
WARN, DEBUG, Error, Fatal, INFO, UNKNOWN
:log_level: DEBUG
Service foreman-proxy restart
[root@foreman11 ~]# tail /var/log/foreman-proxy/proxy.log
I, [2013-08-14T20:32:14.856046 #17181] INFO – : Initializing from Puppet
config file: /etc/puppet/puppet.conf
I, [2013-08-14T20:32:14.867375 #17181] INFO – : Initializing from Puppet
config file: /etc/puppet/puppet.conf
I, [2013-08-14T20:32:16.280128 #17181] INFO – : Initializing from Puppet
config file: /etc/puppet/puppet.conf
I, [2013-08-14T20:32:16.322453 #17181] INFO – : Initializing from Puppet
config file: /etc/puppet/puppet.conf
I, [2013-08-14T20:32:16.333449 #17181] INFO – : Initializing from Puppet
config file: /etc/puppet/puppet.conf
I, [2013-08-14T20:32:17.139977 #17181] INFO – : Initializing from Puppet
config file: /etc/puppet/puppet.conf
I, [2013-08-14T20:32:17.417358 #17181] INFO – : Initializing from Puppet
config file: /etc/puppet/puppet.conf
I, [2013-08-14T20:32:17.465492 #17181] INFO – : Initializing from Puppet
config file: /etc/puppet/puppet.conf
I, [2013-08-14T20:32:17.477310 #17181] INFO – : Initializing from Puppet
config file: /etc/puppet/puppet.conf
I, [2013-08-14T20:32:18.286151 #17181] INFO – : Initializing from Puppet
config file: /etc/puppet/puppet.conf
[root@foreman11 ~]# tail /etc/sudoers
Allows members of the users group to shutdown this system
%users localhost=/sbin/shutdown -h now
Read drop-in files from /etc/sudoers.d (the # here does not mean a
comment)
#includedir /etc/sudoers.d
Defaults:foreman-proxy !requiretty
foreman-proxy ALL = NOPASSWD: /usr/bin/mco puppet runonce *
bash-4.1$ sudo mco puppet runonce foreman11.hurn.ca
- [ ============================================================> ] 1 / 1
Finished processing 1 / 1 hosts in 1029.90 ms
I have noticed this in mcollective.log
W, [2013-08-15T00:52:28.009620 #25677] WARN – : runner.rb:71:in `run'
Failed to handle message: Could not find a public key for
mcollective-servers_certificate in
/etc/mcollective/ssl/clients/mcollective-servers_certificate.pem -
RuntimeError
W, [2013-08-15T00:52:28.010027 #25677] WARN – : runner.rb:72:in run' /usr/libexec/mcollective/mcollective/security/ssl.rb:259:in
public_key_file'
Regards, Mike.
···
On Wednesday, August 14, 2013 7:16:19 PM UTC-4, Michael Hurn wrote:
I get the message “Some or all hosts execution failed, Please check log
files for more information”
I may be looking in the wrong place but I can NOT see any info in the
‘log’ files I have looked in.
Also I think that most of my environment is ok as I can run ‘mco ping’
Not only that ‘mco puppet runonce ’ works as expected! (Both run as
root.)
I have set :puppet_provider: mcollective in
/etc/foreman-proxy/settings.yml.
Also did the job with visudo for the sudoers rule.
Is this an ownership / permissions issue or have I missed out something?
Regards, Mike.