puppetboard configuration

49 views
Skip to first unread message

acp priya

unread,
Jan 12, 2022, 1:15:14 PM1/12/22
to puppet...@googlegroups.com
Hi All,

Can anyone please help me to set up puppetboard in details steps.
I am able to see only apache webpage .
Its very urgent.

Regards,
Priya 

nandha kumar

unread,
Jan 14, 2022, 6:25:03 AM1/14/22
to puppet...@googlegroups.com
hi ,
what you mean by puppet board ? you mean puppet enterprise console ?

Regards,
Nandha

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAM7Cn44jJRke_JmTJjXjt%2BUguFZF1N%2Bwaxm2OSzrtB3-m07TGQ%40mail.gmail.com.

Pravin Rane

unread,
Jan 14, 2022, 12:09:23 PM1/14/22
to Puppet Users
There is puppet module for it

Pravin Rane

unread,
Jan 17, 2022, 1:15:40 AM1/17/22
to Puppet Users

The easiest way is to get it installed on separate host via puppet dashboard module.  

-------------------node.pp----------------------------


# Disable default VHOST in Apache
class { 'apache':
default_vhost => false,
purge_configs => true,
}


# Configure Puppetboard
class { '::puppetboard':
groups => puppet,
manage_git => true,
manage_virtualenv => false,
puppetdb_host => '<Your puppet DB host>',
puppetdb_port => 8081,
puppetdb_key => $::puppet::params::hostprivkey,
puppetdb_cert => $::puppet::params::hostcert,
puppetdb_timeout => 300,
reports_count => 40,
offline_mode => true,
}

# create VHOST config
class { '::puppetboard::apache::vhost':
vhost_name => 'PupppetDashBoard.mydomainname',
port => 80;
}

# Enable WSGI module in Apache
class { '::apache::mod::wsgi':
package_name => 'libapache2-mod-wsgi-py3',
mod_path => '/usr/lib/apache2/modules/mod_wsgi.so-3.8';
} 

----------


for 500 errors apache logs should explain what is causing it. 


The manual configuration steps are below 
  1. Download  pupdashboard from  https://github.com/voxpupuli/puppetboard in /srv/puppetboard/ 

 



/srv/puppetboard # tree -L 1

.
├── puppetboard
└── virtenv-puppetboard <- This need be installed manually Check documentation
 
/srv/puppetboard # cd puppetboard
/srv/puppetboard/pupeptboard # tree –L 1
├── CHANGELOG.md
├── conftest.py
├── dev.py
├── Dockerfile
├── docs
├── hooks
├── LICENSE
├── MANIFEST.in
├── puppetboard
├── pytest.ini
├── README.md
├── requirements-docker.txt
├── requirements-test.txt
├── requirements.txt
├── screenshots
├── settings.py
├── setup.cfg
├── setup.py
├── test
├── tox.ini
└── wsgi.py

Edit file settings.py


DEV_LISTEN_HOST = '127.0.0.1'
DEV_LISTEN_PORT = 5000
LOGLEVEL = 'info'
PUPPETDB_HOST = 'IP of Your PUPPET DB HOST'
PUPPETDB_PORT = 8081
PUPPETDB_SSL_VERIFY = False
PUPPETDB_KEY = '/etc/puppetlabs/puppet/ssl/private_keys/<Your hostname>.pem'
PUPPETDB_CERT = '/etc/puppetlabs/puppet/ssl/certs/<Your Hostname>.pem'
PUPPETDB_TIMEOUT = 300
UNRESPONSIVE_HOURS = 3
ENABLE_CATALOG = False
ENABLE_QUERY = True
LOCALISE_TIMESTAMP = True
OFFLINE_MODE = True
PUPPETDB_EXPERIMENTAL = False
DEFAULT_ENVIRONMENT = 'production'
REPORTS_COUNT = 40


Apache VHOST configuration


Load wsgi module in main apache config
LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so-3.8





---------------------------------------------


<VirtualHost *:80>
ServerName puppetboard.yourdomainname.com
## Vhost docroot
DocumentRoot "/srv/puppetboard/puppetboard"

## Directories, there should at least be a declaration for /srv/puppetboard/puppetboard
<Directory "/srv/puppetboard/puppetboard">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Require all granted
</Directory>

## WSGI configuration
WSGIDaemonProcess puppetboard group=puppetboard python-home=/srv/puppetboard/virtenv-puppetboard threads=5 user=puppetboard
WSGIProcessGroup puppetboard
WSGIScriptAlias / "/srv/puppetboard/puppetboard/wsgi.py"

</VirtualHost>
Reply all
Reply to author
Forward
0 new messages