I think the problem is with *merging Dashboard with Passenger*.
What I need to have in my Apache config file?
For *Passenger* I need to have in the Apache configuration file the lines:
Listen 8140
<VirtualHost *:8140>
SSLEngine On
SSLProtocol All -SSLv2
SSLCipherSuite HIGH:!ADH:RC4+RSA:-MEDIUM:-LOW:-EXP
SSLCertificateFile
/var/lib/puppet/ssl/certs/puppetsrv.domain.com.pem
SSLCertificateKeyFile
/var/lib/puppet/ssl/private_keys/puppetsrv.domain.com.pem
SSLCertificateChainFile /var/lib/puppet/ssl/ca/ca_crt.pem
SSLCACertificateFile /var/lib/puppet/ssl/ca/ca_crt.pem
SSLCARevocationFile /var/lib/puppet/ssl/ca/ca_crl.pem
SSLVerifyClient optional
SSLVerifyDepth 1
SSLOptions +StdEnvVars +ExportCertData
RequestHeader set X-SSL-Subject %{SSL_CLIENT_S_DN}e
RequestHeader set X-Client-DN %{SSL_CLIENT_S_DN}e
RequestHeader set X-Client-Verify %{SSL_CLIENT_VERIFY}e
* DocumentRoot /usr/share/puppet/rack/puppetmasterd/public/*
<Directory /usr/share/puppet/rack/puppetmasterd/>
Options -MultiViews
AllowOverride all
Order Allow,Deny
Allow from All
</Directory>
</VirtualHost>
but for *Dashboard* I need to have the lines:
<VirtualHost *:80>
ServerName puppetsrv.domain.com
*DocumentRoot /usr/share/puppet-dashboard/public/*
<Directory /usr/share/puppet-dashboard/public/>
Options None
AllowOverride AuthConfig
Order Allow,Deny
Allow from All
</Directory>
ErrorLog /etc/httpd/logs/dashboard_error.log
LogLevel warn
CustomLog /etc/httpd/logs/dashboard_access.log Combined
ServerSignature On
</VirtualHost>
How can I merge between the 2 virtual host to make Passenger work with
Dashboard?
Any help is welcome.
Thanks.
On Tuesday, November 26, 2013 11:33:39 AM UTC+2, [email protected] wrote:
>
>
>
> Hi,
> I had Puppet + Passenger installed and working.
>
> Then I installed Dashboard on the puppet master.
>
> I had to change the apache configuration file and replace the virtual host
> I had when I install Passenger with contain:
>
> <VirtualHost *:80>
> ServerName puppetsrv.domain.com
> DocumentRoot /usr/share/puppet-dashboard/public/
> <Directory /usr/share/puppet-dashboard/public/>
> Options None
> AllowOverride AuthConfig
> Order Allow,Deny
> Allow from All
> </Directory>
> ErrorLog /etc/httpd/logs/dashboard_error.log
> LogLevel warn
> CustomLog /etc/httpd/logs/dashboard_access.log Combined
> ServerSignature On
> </VirtualHost>
>
>
> Now when I run on the agent :
>
> puppet agent --no-daemonize --verbose
>
>
> I got the error:
>
> Notice: Starting Puppet client version 3.3.1
> *Error: Failed to apply catalog: Connection refused - connect(2)*
> *Error: Could not send report: Connection refused - connect(2)*
> /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:89:in `exit': no implicit
> conversion from nil to integer (TypeError)
> from /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:89:in
> `run_in_fork'
> from /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:86:in `fork'
> from /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:86:in
> `run_in_fork'
> from /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:41:in `run'
>
> .... .... .... .... ....
>
>
> and have no nodes in the Dashboard on the puppet master.
>
> How can I solve this problem?
> Thanks.
>
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/24b43c10-77d6-45f8-a458-ab2af7c44a01%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.