Foreman under Passenger

1,173 views
Skip to first unread message

CraftyTech

unread,
Jun 8, 2010, 11:47:51 AM6/8/10
to Puppet Users
This is how I have it:

<VirtualHost *:80>
ServerName hostname
DocumentRoot /installDir/foreman/public
RailsBaseURI /foreman
</VirtualHost>

When I restart apache, the page comes back blank. Is there any
permissions issues I should be aware of? Should I make the directory
owned by apache?

Thanks,

Henry

Ohad Levy

unread,
Jun 8, 2010, 11:51:08 AM6/8/10
to puppet...@googlegroups.com
I suggest you go through the module, esp http://github.com/ohadlevy/puppet-foreman/blob/master/foreman/manifests/passenger.pp

make sure that config/environment.rb file is own by the user that runs foreman (e.g. foreman).

getting a blank page from passenger on rails app, usually means permissions error to access the database.

Ohad



--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.


Jacob Hunt

unread,
Jun 8, 2010, 11:54:57 AM6/8/10
to puppet...@googlegroups.com
My directory is owned by foreman, and this is my setup. I haven't had any issues.

<VirtualHost <ip address>:443>
  ServerName puppet
  ServerAlias foreman

  RailsAutoDetect On
  DocumentRoot /usr/share/foreman/public

  # Use puppet certificates for SSL
  SSLEngine on
  SSLCertificateFile      /var/lib/puppet/ssl/certs/puppet.<domain>.pem
  SSLCertificateKeyFile   /var/lib/puppet/ssl/private_keys/puppet.<domain>.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  3
  SSLOptions +StdEnvVars

</VirtualHost>


CraftyTech

unread,
Jun 8, 2010, 2:24:55 PM6/8/10
to Puppet Users
I installed foreman from source, and run it from directory /apps.
Hence my DocumentRoot is /apps/foreman/public. Since I'm running
centos 5.4, I just created a symlink in /var/www/html/foreman to point
to my DocumentRoot. I then used this symlink in the /etc/httpd/conf.d/
foreman.conf as the documentroot and this seems to work for me. This
is my conf file:

<VirtualHost *:80>

ServerName hostname
DocumentRoot /var/www/html
RailsBaseURI /foreman

</VirtualHost>

I'll try it with the ssl config next. Thanks for the feedback.




On Jun 8, 11:54 am, Jacob Hunt <jacob.r.h...@gmail.com> wrote:
> My directory is owned by foreman, and this is my setup. I haven't had any
> issues.
>
> <VirtualHost <ip address>:443>
>   ServerName puppet
>   ServerAlias foreman
>
>   RailsAutoDetect On
>   DocumentRoot /usr/share/foreman/public
>
>   # Use puppet certificates for SSL
>   SSLEngine on
>   SSLCertificateFile      /var/lib/puppet/ssl/certs/puppet.<domain>.pem
>   SSLCertificateKeyFile
> /var/lib/puppet/ssl/private_keys/puppet.<domain>.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  3
>   SSLOptions +StdEnvVars
>
> </VirtualHost>
>
> On Tue, Jun 8, 2010 at 9:47 AM, CraftyTech <hmmed...@gmail.com> wrote:
> > This is how I have it:
>
> > <VirtualHost *:80>
> >    ServerName hostname
> >    DocumentRoot /installDir/foreman/public
> >    RailsBaseURI /foreman
> > </VirtualHost>
>
> > When I restart apache, the page comes back blank.  Is there any
> > permissions issues I should be aware of? Should I make the directory
> > owned by apache?
>
> > Thanks,
>
> > Henry
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Puppet Users" group.
> > To post to this group, send email to puppet...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > puppet-users...@googlegroups.com<puppet-users%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages