This is the jenkins module.
# Preconfigure Tomcat
# Important: Must add user tomcat6 to plugdev if $PLEXUS_NEXUS_WORK is in NTFS
file { '/etc/default/tomcat6':
mode => 0644,
source => 'puppet:///modules/bippodeveloper/hadi/tomcat6_default',
}
class { tomcat:
version => 6, # don't use 7, conflicts with Openbravo
enable_service => true,
}
File['/etc/default/tomcat6'] -> Class['tomcat']- Jenkins
class { jenkins:
tomcat_version => 6,
dist_uri => ‘http://192.168.66.17:8080/alfresco/webdav/Sites/bippo/documentLibrary/Installer/Jenkins/jenkins.war’,
private_key_source => ‘puppet:///modules/bippodeveloper/jenkins/id_rsa’,
public_key_source => ‘puppet:///modules/bippodeveloper/jenkins/id_rsa.pub’,
}
class { jenkins::nginx:
server_name => ‘jenkins.hadi.dev’,
}
class { jenkins::git:
email => ‘[email protected]’,
}
class { jenkins::maven:
settings_source => ‘puppet:///modules/bippodeveloper/jenkins/m2_settings.xml’,
}
Note: In /etc/default/tomcat{6|7}, you still need to separately configure:
JENKINS_HOME=/home/jenkins/.jenkinsGit needs to be installed separetely, jenkins::git will install the Git Jenkins plugin
and setup sane defaults for tomcat{6|7} user.
You will still need to configure Ant (antlibs) and Maven separately.