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> 
On Friday, January 14, 2022 at 4:55:03 PM UTC+5:30 [email protected] wrote:

> hi ,
> what you mean by puppet board ? you mean puppet enterprise console ?
>
> Regards,
> Nandha
>
> On Wed, Jan 12, 2022 at 11:45 PM acp priya <[email protected]> wrote:
>
>> 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 
>>
>> -- 
>> 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/CAM7Cn44jJRke_JmTJjXjt%2BUguFZF1N%2Bwaxm2OSzrtB3-m07TGQ%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/puppet-users/CAM7Cn44jJRke_JmTJjXjt%2BUguFZF1N%2Bwaxm2OSzrtB3-m07TGQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/5c078c67-387e-424f-aadd-07dfb84a8bcan%40googlegroups.com.

Reply via email to