Advertisement
Guest User

Untitled

a guest
Jul 6th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. #
  2. # Tomcat/conf/server.xml
  3. #
  4. <server>
  5. ....
  6. <GlobalNamingResources>
  7. <Resource name="jdbc/globalRundeckDS" auth="Container"
  8. type="javax.sql.DataSource"
  9. maxActive="100" maxIdle="30"
  10. maxWait="10000" username="rundeck"
  11. password="??????????" driverClassName="com.mysql.jdbc.Driver"
  12. url="jdbc:mysql://????????.tld/rundeck?autoReconnect=true"/>
  13. </GlobalNamingResources>
  14. ...
  15. </server>
  16.  
  17. #
  18. # rundeck.war/META-INF/context.xml full file
  19. #
  20. <Context
  21. docBase="/opt/rundeck/rundeck-war"
  22. path="/rundeck"
  23. reloadable="true" >
  24. <ResourceLink global="jdbc/globalRundeckDS" name="jdbc/rundeckDS" type="javax.sql.DataSource" />
  25. </Context>
  26.  
  27. #
  28. # Tomcat/conf/Catalina/localhost/rundeck.xml !!!! this file get generated by tomcat if you do hot deployment !!! => drop rundeck.war archive into tomcat's webapps is hotdeploymemnt in my case not since i do cold deployment i dont need the contex.xml but instead i need this file
  29. #
  30. # Tomcat/conf/Catalina/localhost/rundeck.xml
  31. <Context
  32. docBase="/opt/rundeck/rundeck-war"
  33. path="/rundeck"
  34. reloadable="true" >
  35. <ResourceLink global="jdbc/globalRundeckDS" name="jdbc/rundeckDS" type="javax.sql.DataSource" />
  36. </Context>
  37.  
  38. #
  39. # rundeck-base/etc/rundeck-config.properties
  40. #
  41. ...
  42. dataSource.jndiName = "java:comp/env/jdbc/rundeckDS"
  43. #######rundeck.v14.rdbsupport=true make sure to remove this line or uncomment it
  44. dataSource.dbCreate = update
  45. ...
  46.  
  47. problems still blame me on twitter: @atlasloewenherz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement