1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'manifests/install.pp', line 1
class jenkins::install inherits jenkins{
exec{'download':
command => 'wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo',
path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin',
cwd => '/etc/yum.repos.d',
user => 'root',
creates => '/etc/yum.repos.d/jenkins.repo',
notify => Exec['extract'],
}
exec{'extract':
command => 'rpm --import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key',
path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin',
cwd => '/etc/yum.repos.d',
user => 'root',
refreshonly => true,
}
package{'jenkins':
ensure => installed,
}
}
|