dukecon / dukecon_infra

Setup DukeCon Infrastructure
1 stars 1 forks source link

Static link to last architecture documentation (asciidoctor) and jgiven reports from recent jenkins build on dukecon.org #12

Open ascheman opened 8 years ago

ascheman commented 8 years ago

From @sippsack on December 22, 2015 17:28

jenkins has jgiven plugin: https://github.com/jenkinsci/jgiven-plugin

Copied from original issue: dukecon/dukecon#23

ahus1 commented 8 years ago

@ascheman - in order to server jgiven reports, the content security policy of jenkins needs to be updated to allow download and execution of JavaScript.

The file /etc/default/jenkins needs to contain the following options for hudson.model.DirectoryBrowserSupport.CSP.

JAVA_ARGS="-Dhudson.model.DirectoryBrowserSupport.CSP=\"default-src 'self'; style-src 'self' 'unsafe-inline';\" -Djava.awt.headless=true"

How would I patch such a configuration file using puppet? Or would I choose the complete file to be part of the configuration? Did you manually change anything in this file?