Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Instruction for setting up nginx version? #143

Open
jk2l opened this issue Jul 30, 2016 · 1 comment
Open

Documentation: Instruction for setting up nginx version? #143

jk2l opened this issue Jul 30, 2016 · 1 comment

Comments

@jk2l
Copy link

jk2l commented Jul 30, 2016

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:

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],
        ],
    }
}
@SiteDesignUSA
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants