puppet-puppetboard icon indicating copy to clipboard operation
puppet-puppetboard copied to clipboard

Documentation: Instruction for setting up nginx version?

Open jk2l opened this issue 8 years ago • 1 comments

I spent few hours trying to figure out how to install puppetboard. more than 50% of the time is there are no clear instruction and i have been reading the source code into puppetboard module, puppetboard main repo, python modules, and apache modules. the setup is quite simple but may need better documentation.

There are 2 sections need to mention:

  • uwsgi - as i don't normally use python. My first thought was install uwsgi off apt-get. But it seem that one doesn't seem to work with the command line describe in https://github.com/voxpupuli/puppetboard. I need to install it via pip
  • This module's document is using virtualenv but https://github.com/voxpupuli/puppetboard does not have anything mention with it.

The following is my profile code. For nginx part i just add the template from https://github.com/voxpupuli/puppetboard into my nginx site-available. so whole part in nginx is very straight forward.

class profiles::puppetboard {
    $user           = 'puppetboard'
    $group          = 'puppetboard'
    $basedir        = '/opt/voxpupuli'
    $docroot        = "${basedir}/puppetboard"
    $wsgi_script    = "${docroot}/wsgi.py"

    package { 'uwsgi':
        ensure   => installed,
        provider => 'pip',
    }

    class { '::puppetboard':
        user              => $user,
        group             => $group,
        basedir           => $basedir,
        revision          => 'v0.0.5',
        manage_virtualenv => true,
        reports_count     => 100,
    }

    file { $wsgi_script:
        ensure  => present,
        content => template('puppetboard/wsgi.py.erb'),
        owner   => $user,
        group   => $group,
        require => [
            User[$user],
            Vcsrepo[$docroot],
        ],
    }
}

jk2l avatar Jul 30 '16 18:07 jk2l

Hi and thanks for the profile code to get puppetboard working.

Could you post what part of the "i just add the template from https://github.com/voxpupuli/puppetboard into my nginx site-available. " also? The specific steps necessary for you to get puppetboard running on nginx?

Like you said, the docs are lacking "clear instruction" on the puppetboard running on nginx, and many other issues.

I know I would appreciate your contribution!

Thanks, -TJ

SiteDesignUSA avatar May 21 '19 14:05 SiteDesignUSA