jenkins/files/etc/apt/sources.list.d/jenkins.list --
deb http://pkg.jenkins-ci.org/debian binary/
jenkins/manifests/init.pp --
class jenkins {
exec { 'install_jenkins_package_keys':class jenkins {
exec { 'install_jenkins_package_keys':
command => '/usr/bin/wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | /usr/bin/apt-key add - ',
}
file { "/etc/apt/sources.list.d/jenkins.list":
mode => 644,
owner => root,
group => root,
source => "puppet:///modules/jenkins/etc/apt/sources.list.d/jenkins.list",
}
package { 'jenkins':
ensure => latest,
require => [ Exec['install_jenkins_package_keys'],
File['/etc/apt/sources.list.d/jenkins.list'], ],
}
service { 'jenkins':
ensure => running,
}
}