Last active
April 21, 2017 18:31
-
-
Save Tokynet/51f8b44da7e36edd177caee633f6c831 to your computer and use it in GitHub Desktop.
puppet-confluence-dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This profile manages the installation of the confluence application. | |
class profiles::confluence_dev( | |
$javahome = $::java_default_home, | |
$confluencever = '6.1.0' | |
) { | |
#Create parent directories | |
file { '/data': | |
ensure => directory, | |
} | |
#Create parent directories | |
file { '/data/apps': | |
ensure => directory, | |
} | |
#Create attachments directory | |
file { '/data/attachments': | |
ensure => directory, | |
} | |
class { 'confluence': | |
version => $confluencever, | |
installdir => '/data/apps/confluence-install', | |
homedir => '/data/apps/confluence-home', | |
javahome => $javahome, | |
context_path => '/confluence', | |
require => [ | |
File['/data/apps'], | |
File['/data/attachments'], | |
], | |
tomcat_proxy => { | |
scheme => 'https', | |
proxyName => 'itmi.inova.org', | |
proxyPort => '443', | |
}, | |
tomcat_extras => { | |
keystorePass => 'changeit', | |
}, | |
} | |
class { 'mysql_java_connector': | |
#links => ["/data/apps/confluence-install/atlassian-confluence-${confluencever}/confluence/WEB-INF/lib"], | |
version => '5.1.41', | |
require => Class['confluence'], | |
} | |
} | |
########output of the run######### | |
Debug: Augeas[/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml](provider=augeas): Opening augeas with root /, lens path , flags 64 | |
Debug: Augeas[/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml](provider=augeas): Augeas version 1.4.0 is installed | |
Debug: Augeas[/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml](provider=augeas): Will attempt to save and only run if files changed | |
Debug: Augeas[/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml](provider=augeas): sending command 'set' with params ["/files/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml/Server/Service[#attribute/name='Tomcat-Standalone']/Connector/#attribute/maxThreads", "150"] | |
Debug: Augeas[/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml](provider=augeas): sending command 'set' with params ["/files/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml/Server/Service[#attribute/name='Tomcat-Standalone']/Connector/#attribute/acceptCount", "100"] | |
Debug: Augeas[/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml](provider=augeas): sending command 'set' with params ["/files/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml/Server/Service[#attribute/name='Tomcat-Standalone']/Connector/#attribute/scheme", "https"] | |
Debug: Augeas[/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml](provider=augeas): sending command 'set' with params ["/files/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml/Server/Service[#attribute/name='Tomcat-Standalone']/Connector/#attribute/proxyName", "itmi.inova.org"] | |
Debug: Augeas[/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml](provider=augeas): sending command 'set' with params ["/files/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml/Server/Service[#attribute/name='Tomcat-Standalone']/Connector/#attribute/proxyPort", "443"] | |
Debug: Augeas[/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml](provider=augeas): sending command 'set' with params ["/files/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml/Server/Service[#attribute/name='Tomcat-Standalone']/Connector/#attribute/keystorePass", "changeit"] | |
Debug: Augeas[/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml](provider=augeas): sending command 'set' with params ["/files/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml/Server/Service[#attribute/name='Tomcat-Standalone']/Connector/#attribute/port", "8090"] | |
Debug: Augeas[/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml](provider=augeas): sending command 'set' with params ["/files/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml/Server/Service[#attribute/name='Tomcat-Standalone']/Engine/Host/Context/#attribute/path", "confluence"] | |
Debug: Augeas[/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml](provider=augeas): Skipping because no files were changed | |
Debug: Augeas[/data/apps/confluence-install/atlassian-confluence-6.1.0/conf/server.xml](provider=augeas): Closed the augeas connection | |
^^EOF^^ | |
#########server.xml########### | |
<Server port="8000" shutdown="SHUTDOWN" debug="0"> | |
<Service name="Tomcat-Standalone"> | |
<Connector port="8090" connectionTimeout="20000" redirectPort="8443" | |
maxThreads="150" minSpareThreads="10" | |
enableLookups="false" acceptCount="100" debug="0" URIEncoding="UTF-8" | |
protocol="org.apache.coyote.http11.Http11NioProtocol" scheme="https" proxyName="itmi.inova.org" proxyPort="443" keystorePass="changeit" /> | |
<Engine name="Standalone" defaultHost="localhost" debug="0"> | |
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false" startStopThreads="4"> | |
<Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true"> | |
<!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties --> | |
<Manager pathname="" /> | |
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60" /> | |
</Context> | |
<Context path="${confluence.context.path}/synchrony-proxy" docBase="../synchrony-proxy" debug="0" reloadable="false" useHttpOnly="true"> | |
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60" /> | |
</Context> | |
</Host> | |
</Engine> | |
<!-- | |
To run Confluence via HTTPS: | |
* Uncomment the Connector below | |
* Execute: | |
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) | |
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) | |
with a password value of "changeit" for both the certificate and the keystore itself. | |
* Restart and visit https://localhost:8443/ | |
For more info, see https://confluence.atlassian.com/display/DOC/Running+Confluence+Over+SSL+or+HTTPS | |
--> | |
<!-- | |
<Connector port="8443" maxHttpHeaderSize="8192" | |
maxThreads="150" minSpareThreads="25" | |
protocol="org.apache.coyote.http11.Http11NioProtocol" | |
enableLookups="false" disableUploadTimeout="true" | |
acceptCount="100" scheme="https" secure="true" | |
clientAuth="false" sslProtocols="TLSv1,TLSv1.1,TLSv1.2" sslEnabledProtocols="TLSv1,TLSv1.1,TLSv1.2" SSLEnabled="true" | |
URIEncoding="UTF-8" keystorePass="<MY_CERTIFICATE_PASSWORD>"/> | |
--> | |
</Service> | |
</Server> | |
# $_context_path_changes = "set ${path}/Engine/Host/Context/#attribute/path '${context_path}'" <==Original line | |
$_context_path_changes = "set ${path}/Engine/Host/Context[#attribute/docBase="../confluence"]/#attribute/path '${context_path}'" | |
Puppet run output: | |
Info: Loading facts | |
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Syntax error at '.' at /etc/puppetlabs/code/environments/production/modules/confluence/manifests/config.pp:53:84 on node awslxconfed01.itmi.inova.org | |
Warning: Not using cache on failed catalog | |
Error: Could not retrieve catalog; skipping run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment