forked from voxpupuli/puppet-jenkins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request voxpupuli#52 from matthewbarr/params
Params.pp & puppetlabs/java dependency, and other fixes
- Loading branch information
Showing
20 changed files
with
271 additions
and
175 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
name 'rtyler-jenkins' | ||
version '0.2.4' | ||
source 'git://github.com/rtyler/puppet-jenkins.git' | ||
source 'git://github.com/jenkinsci/puppet-jenkins.git' | ||
author 'R. Tyler Croy <[email protected]>' | ||
license 'Apache 2.0' | ||
summary 'Manage the Jenkins continuous integration service with Puppet' | ||
description 'Manage the Jenkins continuous integration service with Puppet' | ||
project_page 'https://github.com/rtyler/puppet-jenkins' | ||
project_page 'https://github.com/jenkinsci/puppet-jenkins' | ||
|
||
## Add dependencies, if any: | ||
dependency 'puppetlabs/stdlib', '>= 2.0.0' | ||
dependency 'puppetlabs/apt', '>= 0.0.3' | ||
dependency 'puppetlabs/java', '>= 1.0.1' |
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Class: jenkins::master | ||
# | ||
# | ||
class jenkins::master ( | ||
$version = $jenkins::params::swarm_version | ||
) inherits jenkins::params { | ||
|
||
jenkins::plugin {'swarm': | ||
version => $version } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Class: jenkins::params | ||
# | ||
# | ||
class jenkins::params { | ||
$version = 'installed' | ||
$lts = false | ||
$repo = true | ||
$configure_firewall = true | ||
$install_java = true | ||
$swarm_version = '1.9' | ||
} |
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,28 @@ | ||
# Class: jenkins::repo::debian | ||
# | ||
class jenkins::repo::debian ( $lts=0 ) | ||
class jenkins::repo::debian | ||
{ | ||
|
||
include 'jenkins::repo' | ||
|
||
if $lts == 0 { | ||
if $::jenkins::lts_real { | ||
apt::source { 'jenkins': | ||
location => 'http://pkg.jenkins-ci.org/debian', | ||
location => 'http://pkg.jenkins-ci.org/debian-stable', | ||
release => 'binary/', | ||
repos => '', | ||
key => 'D50582E6', | ||
key_source => 'http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key', | ||
include_src => false, | ||
} | ||
} | ||
|
||
} | ||
elsif $lts == 1 { | ||
else { | ||
apt::source { 'jenkins': | ||
location => 'http://pkg.jenkins-ci.org/debian-stable', | ||
location => 'http://pkg.jenkins-ci.org/debian', | ||
release => 'binary/', | ||
repos => '', | ||
key => 'D50582E6', | ||
key_source => 'http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key', | ||
include_src => false, | ||
} | ||
} | ||
|
||
} | ||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,23 @@ | ||
# Class: jenkins::repo::el | ||
# | ||
class jenkins::repo::el ( $lts=0 ) | ||
class jenkins::repo::el | ||
{ | ||
|
||
include 'jenkins::repo' | ||
|
||
if $lts == 0 { | ||
if $::jenkins::lts_real { | ||
yumrepo {'jenkins': | ||
descr => 'Jenkins', | ||
baseurl => 'http://pkg.jenkins-ci.org/redhat/', | ||
baseurl => 'http://pkg.jenkins-ci.org/redhat-stable/', | ||
gpgcheck => 1, | ||
gpgkey => 'http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key' | ||
} | ||
} | ||
elsif $lts == 1 { | ||
|
||
else { | ||
yumrepo {'jenkins': | ||
descr => 'Jenkins', | ||
baseurl => 'http://pkg.jenkins-ci.org/redhat-stable/', | ||
baseurl => 'http://pkg.jenkins-ci.org/redhat/', | ||
gpgcheck => 1, | ||
gpgkey => 'http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key' | ||
} | ||
} | ||
|
||
} | ||
|
Oops, something went wrong.