Hi Daniel,

 Thanks for getting back to me.

This doesn't look like a configuration error with regard to Puppetboard but
> one with regard to Apache. These lines:  configuration error:  couldn't
> perform authentication. AuthType not set!: /static/js/lists.js, referer:
> http://puppetboard.jokefire.com/ aren't generated by Puppetboard, it has
> no concept of authentication and AuthType is an Apache thing.
> My bet is the "Require all granted" line. From what I can gleam from
> http://httpd.apache.org/docs/current/mod/mod_authz_core.html#require it
> would require a few more settings, AuthType, AuthName, AuthBasicProvider,
> AuthUserFile and AuthGroupFile.
> Until you have authentication set up, replace that Require line with:
>
>         Order deny,allow
>         Allow from all



Ok so I changed my apache config to this:

<VirtualHost *:80>
    ServerName puppetboard.jokefire.com
    WSGIDaemonProcess puppetboard user=apache group=apache threads=5
    WSGIScriptAlias / /var/www/puppetboard/wsgi.py
    ErrorLog /var/log/httpd/puppetboard_error_log
    CustomLog /var/log/httpd/puppetboard_access_log combined

    Alias /static /usr/lib/python2.6/site-packages/puppetboard/static

    <Directory /usr/lib/python2.6/site-packages/puppetboard/static>
        WSGIProcessGroup puppetboard
        WSGIApplicationGroup %{GLOBAL}
*        Order deny,allow*
*        Allow from all*
    </Directory>
</VirtualHost>


I also changed the directory and contents to be readable by apache:

[root@puppet:/etc/httpd/conf.d] #ls -ld
/usr/lib/python2.6/site-packages/puppetboard/static/
drwxr-xr-x. 4 apache apache 4096 Oct  8 12:47
/usr/lib/python2.6/site-packages/puppetboard/static/

I still get the error:

http://puppetboard.jokefire.com/


I missed the part where this actually still works but then throws the
> PuppetDB connection issues.
> * How did you install Puppetboard, with this module:
> https://forge.puppetlabs.com/nibalizer/puppetboard?
>

 I did it via python pip install. I tried using the puppet module
initially. But it threw a bunch of dependency errors on my system. So
rather than try to wrestle with those I decided to to try a pip install
which went ok.


> * Are Puppetboard and PuppetDB running on the same machine?
>

Yes! They are.


> * Can you show me your settings.py as documented here:
> https://github.com/nedap/puppetboard#settings



Sure! Here you go.

[root@puppet:~] #cat /var/www/puppetboard/settings.py
PUPPETDB_HOST = 'puppet.jokefire.com'
PUPPETDB_PORT = 8081
PUPPETDB_KEY  = '/etc/puppetdb/ssl/private.pem'
PUPPETDB_CERT = '/etc/puppetdb/ssl/public.pem'
PUPPETDB_SSL_VERIFY = True
PUPPETDB_KEY = None
PUPPETDB_CERT = None
PUPPETDB_TIMEOUT = 60
DEV_LISTEN_HOST = '127.0.0.1'
DEV_LISTEN_PORT = 5000
UNRESPONSIVE_HOURS = 2
ENABLE_QUERY = True
LOGLEVEL = 'debug'

I also tried the PUPPET_HOST with the IP of the machine, and with 0.0.0.0.
None of that seemed to make any difference!

Thanks again for getting back to me on this.

Tim





On Thu, Oct 9, 2014 at 12:10 PM, Daniele Sluijters <
daniele.sluijt...@gmail.com> wrote:

> Hi,
>
> I missed the part where this actually still works but then throws the
> PuppetDB connection issues.
>
> * How did you install Puppetboard, with this module:
> https://forge.puppetlabs.com/nibalizer/puppetboard?
> * Are Puppetboard and PuppetDB running on the same machine?
> * Can you show me your settings.py as documented here:
> https://github.com/nedap/puppetboard#settings
>
> --
> Daniele Sluijters
>
> --
> 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 puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/09357b9c-d898-4a55-b0b8-c82254d52c9a%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/09357b9c-d898-4a55-b0b8-c82254d52c9a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAOZy0emcoNxr4Rbi%2BqtSsNV31vGEku%2B4maPp36%2BGpT7jv_33kQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to