On Fri, Nov 18, 2011 at 11:59 AM, treydock <treydock@gmail.com>
wrote:> I''ve just installed Puppet Enterprise 2.0, and noticed the
> pe_mcollective module that is provided is failing. I''ve made no
> changes to the modules, this is a fresh install. The system is CentOS
> 6.0 x86_64 updated to CR.
>
> This is the error,
> -------------------
> #/opt/puppet/sbin/puppetd --test -v --debug
> ............
> debug: Exec[broker_cert_truststore](provider=posix): Executing ''sh
-c
> ''umask 077; keytool -import -noprompt -trustcacerts -alias
''PuppetCA'' -
> file /etc/puppetlabs/puppet/ssl/certs/ca.pem -keystore broker.ts -
> storepass puppet''''
> debug: Executing ''sh -c ''umask 077; keytool -import
-noprompt -
> trustcacerts -alias ''PuppetCA'' -file
/etc/puppetlabs/puppet/ssl/certs/
> ca.pem -keystore broker.ts -storepass puppet''''
> err: /Stage[main]/Pe_mcollective/Exec[broker_cert_truststore]/returns:
> change from notrun to 0 failed: sh: keytool: command not found
>
> notice: /Stage[main]/Pe_mcollective/File[/etc/puppetlabs/activemq/
> broker.ts]: Dependency Exec[broker_cert_truststore] has failures: true
> warning: /Stage[main]/Pe_mcollective/File[/etc/puppetlabs/activemq/
> broker.ts]: Skipping because of failed dependencies
> debug: Exec[broker_cert_keystore](provider=posix): Executing ''sh
-c
> ''umask 077; keytool -importkeystore -deststorepass puppet
-destkeypass
> puppet -destkeystore broker.ks -srckeystore broker.p12 -srcstorepass
> puppet -srcstoretype PKCS12 -alias
cllapuppetmaster.tamu.edu''''
> debug: Executing ''sh -c ''umask 077; keytool
-importkeystore -
> deststorepass puppet -destkeypass puppet -destkeystore broker.ks -
> srckeystore broker.p12 -srcstorepass puppet -srcstoretype PKCS12 -
> alias puppetmaster.tamu.edu''''
> err: /Stage[main]/Pe_mcollective/Exec[broker_cert_keystore]/returns:
> change from notrun to 0 failed: sh: keytool: command not found
>
>
> Here''s the results of locating keytool, and my $PATH,
> ----------------
>
> # locate keytool
> /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/keytool
> /usr/share/man/man1/keytool-java-1.6.0-openjdk.1.gz
>
> # which keytool
> /usr/bin/which: no keytool in (/usr/local/sbin:/usr/local/bin:/sbin:/
> bin:/usr/sbin:/usr/bin:/root/bin)
>
> Do I need to update my PATH to include java''s bin directory?
Looking at the error message, I would say yes.
> Also while I''m testing PE, this server is managed by my Puppet
server
> (2.6.12), and during the install the PATH didn''t seem to put /opt/
> puppet/... before the system directories, is that correct ? Should I
> have to add both "/opt/puppet/bin" and
"/opt/puppet/sbin" to my PATH
> manually?
> --------------
> # which puppetd
> /usr/sbin/puppetd
No, and you probably don''t want /opt/puppet/bin/ruby having precedence
over your OS ruby. Puppet installer should have an option to symlink
puppet commands to /usr/local/bin which is usually the only things you
want.
> # echo $PATH
> /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
HTH,
Nan
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.