Hoi Daniele,
/var/www/puppetboard/settings.py
PUPPETDB_HOST = 'puppet.koewacht.net'
PUPPETDB_PORT = 8080
#PUPPETDB_SSL_VERIFY = True
#PUPPETDB_KEY = '/etc/puppetboard/pb_priv.pem'
#PUPPETDB_CERT ='/etc/pupeptboard/pb_pub.pem'
PUPPETDB_TIMEOUT = 20
DEV_LISTEN_HOST = '127.0.0.1'
DEV_LISTEN_PORT = 5000
UNRESPONSIVE_HOURS = 2
ENABLE_QUERY = True
LOGLEVEL = 'info'
ls -l /etc/puppetboard/ssl
[root@centos65 puppetboard]# ls -l /etc/puppetboard/
total 8
-rw-r----- 1 apache apache 3247 Feb 8 12:30 pb_priv.pem
-rw-r----- 1 apache apache 1895 Feb 8 12:31 pb_pub.pem
I assume the pythin code is executed as apache, as given in the vhost
definition :
<VirtualHost *:80>
ServerName puppetboard.koewacht.net
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>
WSGIProcessGroup puppetboard
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
Thx for puppetboard ..
Johan
On 02/10/2014 02:34 PM, Daniele Sluijters wrote:
Hey,
It should work, Puppetboard is supposed to just pass in the settings
to pypuppetdb so unless we really screwed up somewhere that shouldn't
be the issue.
Can you show me your settings.py file?
--
Daniele Sluijters
On Saturday, 8 February 2014 23:35:43 UTC+1, Johan De Wit wrote:
Hi,
Has anyone configured puppetboard to use SSL to connect to the
puppetdb
server ?
puppetboard runs on a dedicated server, puppetdb on my puppetmaster.
Using plain http, on 8080, everything works.
When i configure puppetboard for https, I get always
ERROR:pypuppetdb.api:Could not reach PuppetDB on
puppet.koewacht.net:8081 <http://puppet.koewacht.net:8081> over
HTTPS.
doing the same with pypuppetdb, in a python shell, it works,
as teh apache user, to rule out permission problems.
>>> from pypuppetdb import connect
>>> db = connect(host='puppet.koewacht.net
<http://puppet.koewacht.net>', port=8081,
ssl_key='/etc/puppetboard/pb_priv.pem',
ssl_cert='/etc/puppetboard/pb_pub.pem')
>>> nodes = db.nodes()
>>> for node in nodes:
... print(node)
...
fc19.koewacht.net <http://fc19.koewacht.net>
laptopfc18.koewacht.net <http://laptopfc18.koewacht.net>
puppetboard
puppet.koewacht.net <http://puppet.koewacht.net>
Just looking to see if it is some setting I oversee, or I have to
delve
in the code ..
Grts
Johan
--
Johan De Wit
Open Source Consultant
Red Hat Certified Engineer (805008667232363)
Puppet Certified Professional 2013 (PCP0000006)
_________________________________________________________
Open-Future Phone +32 (0)2/255 70 70
Zavelstraat 72 Fax +32 (0)2/255 70 71
3071 KORTENBERG Mobile +32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_________________________________________________________
Next Events:
Puppet Fundamentals Training |
http://www.open-future.be/puppet-fundamentals-training-4-till-6th-february
<http://www.open-future.be/puppet-fundamentals-training-4-till-6th-february>
Puppet Intruction Course |
http://www.open-future.be/puppet-introduction-course-7th-february
<http://www.open-future.be/puppet-introduction-course-7th-february>
Zabbix Certified Training |
http://www.open-future.be/zabbix-certified-training-10-till-12th-february
<http://www.open-future.be/zabbix-certified-training-10-till-12th-february>
Zabbix for Large Environments Training |
http://www.open-future.be/zabbix-large-environments-training-13-till-14th-february
<http://www.open-future.be/zabbix-large-environments-training-13-till-14th-february>
Subscribe to our newsletter | http://eepurl.com/BUG8H
--
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/25d1898e-1f95-4645-95cc-5c503e9c6236%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Johan De Wit
Open Source Consultant
Red Hat Certified Engineer (805008667232363)
Puppet Certified Professional 2013 (PCP0000006)
_________________________________________________________
Open-Future Phone +32 (0)2/255 70 70
Zavelstraat 72 Fax +32 (0)2/255 70 71
3071 KORTENBERG Mobile +32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_________________________________________________________
Next Events:
Puppet Fundamentals Training |
http://www.open-future.be/puppet-fundamentals-training-4-till-6th-february
Puppet Intruction Course |
http://www.open-future.be/puppet-introduction-course-7th-february
Zabbix Certified Training |
http://www.open-future.be/zabbix-certified-training-10-till-12th-february
Zabbix for Large Environments Training |
http://www.open-future.be/zabbix-large-environments-training-13-till-14th-february
Subscribe to our newsletter | http://eepurl.com/BUG8H
--
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/52F8E6D8.1050101%40open-future.be.
For more options, visit https://groups.google.com/groups/opt_out.