-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
No module named flask #128
Comments
Well, I've had to learn few things obviously. So your module missing the following in order to actually work: # PuppetBoard
class { 'puppetboard':
manage_git => false,
manage_virtualenv => true,
reports_count => 40,
}->
python::pip { 'Flask':
virtualenv => '/srv/puppetboard/virtenv-puppetboard',
proxy => 'http://internal-proxy.mydomain.com:8080',
}->
python::pip { 'Flask-WTF':
virtualenv => '/srv/puppetboard/virtenv-puppetboard',
proxy => 'http://internal-proxy.mydomain.com:8080',
}->
python::pip { 'WTForms':
virtualenv => '/srv/puppetboard/virtenv-puppetboard',
proxy => 'http://internal-proxy.mydomain.com:8080',
}->
python::pip { 'pypuppetdb':
virtualenv => '/srv/puppetboard/virtenv-puppetboard',
proxy => 'http://internal-proxy.mydomain.com:8080',
} After adding this everything went well, and everything works. Sorry for not creating pull request, but at the moment I don't have time to go through your code. You'll change it yourself easily. Thanks! |
is there any way you can provide this as patch to our module, @peske? |
Actually, these modules are present in the repository: it looks like new setuptools module is broken, so python module just fails:
|
In english: On 22/02/2017, I had the same problem as @peske quoted in the beginning of the issue ... Thanks to @peske for reporting the tip and thanks to all developers of community @voxpupuli that work in this module and PuppetBoard. Helped me a lot at work. Hug. Em português: No dia 22/02/2017, eu tive o mesmo problema que o @peske citou no começo do issue... Obrigado a @peske por reportar a dica e obrigado a todos os desenvolvedores da comunidade @voxpupuli que trabalham neste módulo e do PuppetBoard. Me ajudou bastante no trabalho. Abraço. #---------------------- BEGIN DECLARATION ------------------------------#
node myserver.domain.com {
class {'apache':
default_vhost => false,
server_signature => 'Off',
server_tokens => 'Prod',
trace_enable => 'Off',
}
class { 'apache::mod::ssl':
ssl_cipher => 'HIGH:MEDIUM:!aNULL:!MD5:!SSLv3:!SSLv2:!TLSv1:!TLSv1.1',
ssl_protocol => [ 'all', '-SSLv2', '-SSLv3', '-TLSv1', '-TLSv1.1' ],
}
#Configure Apache on this server
class { 'apache::mod::wsgi':
wsgi_socket_prefix => '/var/run/wsgi',
}
#Configure Puppetboard
class { 'puppetboard':
default_environment => '*',
manage_git => 'latest',
manage_virtualenv => 'latest',
reports_count => 50
}->
python::pip { 'Flask':
virtualenv => '/srv/puppetboard/virtenv-puppetboard',
}->
python::pip { 'Flask-WTF':
virtualenv => '/srv/puppetboard/virtenv-puppetboard',
}->
python::pip { 'WTForms':
virtualenv => '/srv/puppetboard/virtenv-puppetboard',
}->
python::pip { 'pypuppetdb':
virtualenv => '/srv/puppetboard/virtenv-puppetboard',
}
#Configure Access Puppetboard
class { 'puppetboard::apache::vhost':
vhost_name => 'myserver.domain.com',
port => 443,
ssl => true,
}
}
#---------------------- END DECLARATION ------------------------------# |
I've just installed puppet board by following the instructions at https://forge.puppet.com/puppet/puppetboard, but I can't start it. Apache error log repeats:
Honestly I don't know anything about python, so can you suggest what to do? Workaround?
Thanks!
The text was updated successfully, but these errors were encountered: