Merge build 1 into master
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,3 +2,5 @@
|
||||
Gemfile.lock
|
||||
FileList
|
||||
.scannerwork
|
||||
.vscode
|
||||
.puppet-lint.rc
|
||||
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@@ -1,7 +1,10 @@
|
||||
{
|
||||
"cSpell.words": [
|
||||
"descr",
|
||||
"fontconfig",
|
||||
"gpgcheck",
|
||||
"NOPASSWD",
|
||||
"requiretty"
|
||||
"requiretty",
|
||||
"yumrepo"
|
||||
]
|
||||
}
|
||||
49
Jenkinsfile
vendored
49
Jenkinsfile
vendored
@@ -28,11 +28,17 @@ pipeline {
|
||||
sh '''
|
||||
git config user.name "Jenkins Server"
|
||||
git config user.email jenkins@confdroid.com
|
||||
# Ensure we're on the development branch (triggered by push)
|
||||
git checkout development
|
||||
# Create jenkins branch from development
|
||||
git checkout -b jenkins-build-$BUILD_NUMBER
|
||||
# Optionally merge master into jenkins to ensure compatibility
|
||||
git fetch origin
|
||||
source_branch="${gitlabSourceBranch:-${BRANCH_NAME:-${GIT_LOCAL_BRANCH:-$GIT_BRANCH}}}"
|
||||
source_branch="${source_branch#origin/}"
|
||||
source_branch="${source_branch#refs/heads/}"
|
||||
if [ -z "$source_branch" ]; then
|
||||
source_branch="development"
|
||||
fi
|
||||
echo "Using source branch: $source_branch"
|
||||
# Create an isolated build branch from the triggering branch revision.
|
||||
git checkout -B jenkins-build-$BUILD_NUMBER "origin/$source_branch"
|
||||
# Merge the current master into the build branch before validation.
|
||||
git merge origin/master --no-ff || { echo "Merge conflict detected"; exit 1; }
|
||||
'''
|
||||
}
|
||||
@@ -69,7 +75,7 @@ pipeline {
|
||||
withCredentials([string(credentialsId: 'sonar-token', variable: 'SONAR_TOKEN')]) {
|
||||
sh '''
|
||||
/opt/sonar-scanner/bin/sonar-scanner \
|
||||
-Dsonar.projectKey=jenkins_cd \
|
||||
-Dsonar.projectKey=confdroid_jenkins \
|
||||
-Dsonar.sources=. \
|
||||
-Dsonar.host.url=https://sonarqube.confdroid.com \
|
||||
-Dsonar.token=$SONAR_TOKEN
|
||||
@@ -91,15 +97,34 @@ pipeline {
|
||||
git config user.name "Jenkins Server"
|
||||
git config user.email jenkins@confdroid.com
|
||||
git add -A && git commit -am "Recommit for updates in build $BUILD_NUMBER" || echo "No changes to commit"
|
||||
git push -o merge_request.create \
|
||||
-o merge_request.target=master \
|
||||
-o merge_request.title="Auto-merge for build $BUILD_NUMBER" \
|
||||
-o merge_request.description="Automated changes from Jenkins build $BUILD_NUMBER" \
|
||||
-o merge_request.merge_when_pipeline_succeeds=true \
|
||||
origin jenkins-build-$BUILD_NUMBER
|
||||
git fetch origin
|
||||
git checkout -B master origin/master
|
||||
git merge --no-ff jenkins-build-$BUILD_NUMBER -m "Merge build $BUILD_NUMBER into master"
|
||||
git push origin master
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Mirror to Gitea') {
|
||||
steps {
|
||||
withCredentials([usernamePassword(
|
||||
credentialsId: 'Jenkins-gitea',
|
||||
usernameVariable: 'GITEA_USER',
|
||||
passwordVariable: 'GITEA_TOKEN')]) {
|
||||
script {
|
||||
sh '''
|
||||
git fetch origin
|
||||
git checkout master
|
||||
git reset --hard origin/master
|
||||
git remote get-url master >/dev/null 2>&1 \
|
||||
&& git remote set-url master https://sourcecode.confdroid.com/confdroid/confdroid_jenkins.git \
|
||||
|| git remote add master https://sourcecode.confdroid.com/confdroid/confdroid_jenkins.git
|
||||
git -c credential.helper="!f() { echo username=${GITEA_USER}; echo password=${GITEA_TOKEN}; }; f" \
|
||||
push --force master refs/heads/master:refs/heads/master
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
# Readme
|
||||
|
||||
[](https://jenkins.confdroid.com/job/jenkins_cd/)|
|
||||
[](https://jenkins.confdroid.com/job/confdroid_jenkins/)|
|
||||
|
||||
[[_TOC_]]
|
||||
|
||||
@@ -36,7 +36,7 @@ via site.pp or nodes.pp
|
||||
|
||||
```bash
|
||||
node 'example.example.net' {
|
||||
include jenkins_cd
|
||||
include confdroid_jenkins
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -64,52 +64,52 @@
|
||||
<td valign='top' width="33%">
|
||||
|
||||
|
||||
<ul id="alpha_J" class="alpha">
|
||||
<li class="letter">J</li>
|
||||
<ul id="alpha_C" class="alpha">
|
||||
<li class="letter">C</li>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd.html" title="puppet_classes::jenkins_cd (puppet_class)">jenkins_cd</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins.html" title="puppet_classes::confdroid_jenkins (puppet_class)">confdroid_jenkins</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::jenkins_cd::firewall::iptables (puppet_class)">jenkins_cd::firewall::iptables</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::confdroid_jenkins::firewall::iptables (puppet_class)">confdroid_jenkins::firewall::iptables</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::jenkins_cd::main::config (puppet_class)">jenkins_cd::main::config</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::confdroid_jenkins::main::config (puppet_class)">confdroid_jenkins::main::config</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd_3A_3Amain_3A_3Adirs.html" title="puppet_classes::jenkins_cd::main::dirs (puppet_class)">jenkins_cd::main::dirs</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins_3A_3Amain_3A_3Adirs.html" title="puppet_classes::confdroid_jenkins::main::dirs (puppet_class)">confdroid_jenkins::main::dirs</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd_3A_3Amain_3A_3Afiles.html" title="puppet_classes::jenkins_cd::main::files (puppet_class)">jenkins_cd::main::files</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins_3A_3Amain_3A_3Afiles.html" title="puppet_classes::confdroid_jenkins::main::files (puppet_class)">confdroid_jenkins::main::files</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::jenkins_cd::main::install (puppet_class)">jenkins_cd::main::install</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::confdroid_jenkins::main::install (puppet_class)">confdroid_jenkins::main::install</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd_3A_3Amain_3A_3Aservice.html" title="puppet_classes::jenkins_cd::main::service (puppet_class)">jenkins_cd::main::service</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins_3A_3Amain_3A_3Aservice.html" title="puppet_classes::confdroid_jenkins::main::service (puppet_class)">confdroid_jenkins::main::service</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::jenkins_cd::main::yumrepo (puppet_class)">jenkins_cd::main::yumrepo</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::confdroid_jenkins::main::yumrepo (puppet_class)">confdroid_jenkins::main::yumrepo</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd_3A_3Aparams.html" title="puppet_classes::jenkins_cd::params (puppet_class)">jenkins_cd::params</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins_3A_3Aparams.html" title="puppet_classes::confdroid_jenkins::params (puppet_class)">confdroid_jenkins::params</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
<div id="content"><div id='filecontents'>
|
||||
<h1 id="label-Readme">Readme</h1>
|
||||
|
||||
<p><a href="https://jenkins.confdroid.com/job/jenkins_cd/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=jenkins_cd"></a>|</p>
|
||||
<p><a href="https://jenkins.confdroid.com/job/confdroid_jenkins/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=confdroid_jenkins"></a>|</p>
|
||||
|
||||
<p>[[<em>TOC</em>]]</p>
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
<p>via site.pp or nodes.pp</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">node 'example.example.net' {
|
||||
include jenkins_cd
|
||||
include confdroid_jenkins
|
||||
}
|
||||
</code></pre>
|
||||
<ul><li>
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
<div id="content"><div id='filecontents'>
|
||||
<h1 id="label-Readme">Readme</h1>
|
||||
|
||||
<p><a href="https://jenkins.confdroid.com/job/jenkins_cd/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=jenkins_cd"></a>|</p>
|
||||
<p><a href="https://jenkins.confdroid.com/job/confdroid_jenkins/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=confdroid_jenkins"></a>|</p>
|
||||
|
||||
<p>[[<em>TOC</em>]]</p>
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
<p>via site.pp or nodes.pp</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">node 'example.example.net' {
|
||||
include jenkins_cd
|
||||
include confdroid_jenkins
|
||||
}
|
||||
</code></pre>
|
||||
<ul><li>
|
||||
|
||||
@@ -36,65 +36,65 @@
|
||||
<ul id="full_list" class="puppet_class">
|
||||
|
||||
|
||||
<li id="object_puppet_classes::jenkins_cd" class="odd">
|
||||
<li id="object_puppet_classes::confdroid_jenkins" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd.html" title="puppet_classes::jenkins_cd (puppet_class)">jenkins_cd</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins.html" title="puppet_classes::confdroid_jenkins (puppet_class)">confdroid_jenkins</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::jenkins_cd::firewall::iptables" class="even">
|
||||
<li id="object_puppet_classes::confdroid_jenkins::firewall::iptables" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::jenkins_cd::firewall::iptables (puppet_class)">jenkins_cd::firewall::iptables</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::confdroid_jenkins::firewall::iptables (puppet_class)">confdroid_jenkins::firewall::iptables</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::jenkins_cd::main::config" class="odd">
|
||||
<li id="object_puppet_classes::confdroid_jenkins::main::config" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::jenkins_cd::main::config (puppet_class)">jenkins_cd::main::config</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::confdroid_jenkins::main::config (puppet_class)">confdroid_jenkins::main::config</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::jenkins_cd::main::dirs" class="even">
|
||||
<li id="object_puppet_classes::confdroid_jenkins::main::dirs" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd_3A_3Amain_3A_3Adirs.html" title="puppet_classes::jenkins_cd::main::dirs (puppet_class)">jenkins_cd::main::dirs</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins_3A_3Amain_3A_3Adirs.html" title="puppet_classes::confdroid_jenkins::main::dirs (puppet_class)">confdroid_jenkins::main::dirs</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::jenkins_cd::main::files" class="odd">
|
||||
<li id="object_puppet_classes::confdroid_jenkins::main::files" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd_3A_3Amain_3A_3Afiles.html" title="puppet_classes::jenkins_cd::main::files (puppet_class)">jenkins_cd::main::files</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins_3A_3Amain_3A_3Afiles.html" title="puppet_classes::confdroid_jenkins::main::files (puppet_class)">confdroid_jenkins::main::files</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::jenkins_cd::main::install" class="even">
|
||||
<li id="object_puppet_classes::confdroid_jenkins::main::install" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::jenkins_cd::main::install (puppet_class)">jenkins_cd::main::install</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::confdroid_jenkins::main::install (puppet_class)">confdroid_jenkins::main::install</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::jenkins_cd::main::service" class="odd">
|
||||
<li id="object_puppet_classes::confdroid_jenkins::main::service" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd_3A_3Amain_3A_3Aservice.html" title="puppet_classes::jenkins_cd::main::service (puppet_class)">jenkins_cd::main::service</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins_3A_3Amain_3A_3Aservice.html" title="puppet_classes::confdroid_jenkins::main::service (puppet_class)">confdroid_jenkins::main::service</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::jenkins_cd::main::yumrepo" class="even">
|
||||
<li id="object_puppet_classes::confdroid_jenkins::main::yumrepo" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::jenkins_cd::main::yumrepo (puppet_class)">jenkins_cd::main::yumrepo</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::confdroid_jenkins::main::yumrepo (puppet_class)">confdroid_jenkins::main::yumrepo</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::jenkins_cd::params" class="odd">
|
||||
<li id="object_puppet_classes::confdroid_jenkins::params" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/jenkins_cd_3A_3Aparams.html" title="puppet_classes::jenkins_cd::params (puppet_class)">jenkins_cd::params</a></span>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_jenkins_3A_3Aparams.html" title="puppet_classes::confdroid_jenkins::params (puppet_class)">confdroid_jenkins::params</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: jenkins_cd
|
||||
Puppet Class: confdroid_jenkins
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::jenkins_cd";
|
||||
pathId = "puppet_classes::confdroid_jenkins";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (j)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">jenkins_cd</span>
|
||||
<span class="title">confdroid_jenkins</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: jenkins_cd</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_jenkins</h1>
|
||||
<div class="box_info">
|
||||
|
||||
|
||||
@@ -72,13 +72,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class initializes the jenkins_cd module.
|
||||
Class initializes the confdroid_jenkins module.
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>jenkins_cd::init.pp Module name: jenkins_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_jenkins::init.pp Module name: confdroid_jenkins Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -103,8 +103,8 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/init.pp', line 6</span>
|
||||
|
||||
class jenkins_cd {
|
||||
include jenkins_cd::params
|
||||
class confdroid_jenkins {
|
||||
include confdroid_jenkins::params
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: jenkins_cd::firewall::iptables
|
||||
Puppet Class: confdroid_jenkins::firewall::iptables
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::jenkins_cd::firewall::iptables";
|
||||
pathId = "puppet_classes::confdroid_jenkins::firewall::iptables";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (j)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">jenkins_cd::firewall::iptables</span>
|
||||
<span class="title">confdroid_jenkins::firewall::iptables</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: jenkins_cd::firewall::iptables</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_jenkins::firewall::iptables</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="jenkins_cd_3A_3Aparams.html" title="puppet_classes::jenkins_cd::params (puppet_class)">jenkins_cd::params</a></span></dd>
|
||||
<dd><span class='object_link'><a href="confdroid_jenkins_3A_3Aparams.html" title="puppet_classes::confdroid_jenkins::params (puppet_class)">confdroid_jenkins::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>jenkins_cd::firewall::iptables.pp Module name: jenkins_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_jenkins::firewall::iptables.pp Module name: confdroid_jenkins Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -117,9 +117,9 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/firewall/iptables.pp', line 6</span>
|
||||
|
||||
class jenkins_cd::firewall::iptables (
|
||||
class confdroid_jenkins::firewall::iptables (
|
||||
|
||||
) inherits jenkins_cd::params {
|
||||
) inherits confdroid_jenkins::params {
|
||||
if ($fqdn == $js_host_fqdn) and ($js_enable_fw == true) {
|
||||
firewall { "${js_fw_rule}${js_jenkins_port} tcp port ${js_jenkins_port}":
|
||||
proto => 'tcp',
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: jenkins_cd::main::config
|
||||
Puppet Class: confdroid_jenkins::main::config
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::jenkins_cd::main::config";
|
||||
pathId = "puppet_classes::confdroid_jenkins::main::config";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (j)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">jenkins_cd::main::config</span>
|
||||
<span class="title">confdroid_jenkins::main::config</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: jenkins_cd::main::config</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_jenkins::main::config</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="jenkins_cd_3A_3Aparams.html" title="puppet_classes::jenkins_cd::params (puppet_class)">jenkins_cd::params</a></span></dd>
|
||||
<dd><span class='object_link'><a href="confdroid_jenkins_3A_3Aparams.html" title="puppet_classes::confdroid_jenkins::params (puppet_class)">confdroid_jenkins::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -77,13 +77,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class manages the logic for the jenkins_cd module.
|
||||
Class manages the logic for the confdroid_jenkins module.
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>jenkins_cd::main::config.pp Module name: jenkins_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_jenkins::main::config.pp Module name: confdroid_jenkins Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -112,11 +112,11 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/config.pp', line 6</span>
|
||||
|
||||
class jenkins_cd::main::config (
|
||||
class confdroid_jenkins::main::config (
|
||||
|
||||
) inherits jenkins_cd::params {
|
||||
) inherits confdroid_jenkins::params {
|
||||
if $fqdn == $js_host_fqdn {
|
||||
include jenkins_cd::main::service
|
||||
include confdroid_jenkins::main::service
|
||||
}
|
||||
}</pre>
|
||||
</td>
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: jenkins_cd::main::dirs
|
||||
Puppet Class: confdroid_jenkins::main::dirs
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::jenkins_cd::main::dirs";
|
||||
pathId = "puppet_classes::confdroid_jenkins::main::dirs";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (j)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">jenkins_cd::main::dirs</span>
|
||||
<span class="title">confdroid_jenkins::main::dirs</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: jenkins_cd::main::dirs</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_jenkins::main::dirs</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="jenkins_cd_3A_3Aparams.html" title="puppet_classes::jenkins_cd::params (puppet_class)">jenkins_cd::params</a></span></dd>
|
||||
<dd><span class='object_link'><a href="confdroid_jenkins_3A_3Aparams.html" title="puppet_classes::confdroid_jenkins::params (puppet_class)">confdroid_jenkins::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>jenkins_cd::main::dirs.pp Module name: jenkins_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_jenkins::main::dirs.pp Module name: confdroid_jenkins Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -112,11 +112,11 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/dirs.pp', line 6</span>
|
||||
|
||||
class jenkins_cd::main::dirs (
|
||||
class confdroid_jenkins::main::dirs (
|
||||
|
||||
) inherits jenkins_cd::params {
|
||||
) inherits confdroid_jenkins::params {
|
||||
if $fqdn == $js_host_fqdn {
|
||||
require jenkins_cd::main::install
|
||||
require confdroid_jenkins::main::install
|
||||
}
|
||||
}</pre>
|
||||
</td>
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: jenkins_cd::main::files
|
||||
Puppet Class: confdroid_jenkins::main::files
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::jenkins_cd::main::files";
|
||||
pathId = "puppet_classes::confdroid_jenkins::main::files";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (j)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">jenkins_cd::main::files</span>
|
||||
<span class="title">confdroid_jenkins::main::files</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: jenkins_cd::main::files</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_jenkins::main::files</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="jenkins_cd_3A_3Aparams.html" title="puppet_classes::jenkins_cd::params (puppet_class)">jenkins_cd::params</a></span></dd>
|
||||
<dd><span class='object_link'><a href="confdroid_jenkins_3A_3Aparams.html" title="puppet_classes::confdroid_jenkins::params (puppet_class)">confdroid_jenkins::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>jenkins_cd::main::files.pp Module name: jenkins_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_jenkins::main::files.pp Module name: confdroid_jenkins Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -130,11 +130,11 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 6</span>
|
||||
|
||||
class jenkins_cd::main::files (
|
||||
class confdroid_jenkins::main::files (
|
||||
|
||||
) inherits jenkins_cd::params {
|
||||
) inherits confdroid_jenkins::params {
|
||||
if $fqdn == $js_host_fqdn {
|
||||
require jenkins_cd::main::dirs
|
||||
require confdroid_jenkins::main::dirs
|
||||
if $js_use_sudo == true {
|
||||
file { $js_sudoers_file:
|
||||
ensure => file,
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: jenkins_cd::main::install
|
||||
Puppet Class: confdroid_jenkins::main::install
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::jenkins_cd::main::install";
|
||||
pathId = "puppet_classes::confdroid_jenkins::main::install";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (j)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">jenkins_cd::main::install</span>
|
||||
<span class="title">confdroid_jenkins::main::install</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: jenkins_cd::main::install</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_jenkins::main::install</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="jenkins_cd_3A_3Aparams.html" title="puppet_classes::jenkins_cd::params (puppet_class)">jenkins_cd::params</a></span></dd>
|
||||
<dd><span class='object_link'><a href="confdroid_jenkins_3A_3Aparams.html" title="puppet_classes::confdroid_jenkins::params (puppet_class)">confdroid_jenkins::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>jenkins_cd::main::install.pp Module name: jenkins_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_jenkins::main::install.pp Module name: confdroid_jenkins Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -117,12 +117,12 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/install.pp', line 6</span>
|
||||
|
||||
class jenkins_cd::main::install (
|
||||
class confdroid_jenkins::main::install (
|
||||
|
||||
) inherits jenkins_cd::params {
|
||||
) inherits confdroid_jenkins::params {
|
||||
if $fqdn == $js_host_fqdn {
|
||||
require java_cd
|
||||
require jenkins_cd::main::yumrepo
|
||||
require confdroid_jenkins::main::yumrepo
|
||||
|
||||
package { $reqpackages:
|
||||
ensure => $pkg_ensure,
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: jenkins_cd::main::service
|
||||
Puppet Class: confdroid_jenkins::main::service
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::jenkins_cd::main::service";
|
||||
pathId = "puppet_classes::confdroid_jenkins::main::service";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (j)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">jenkins_cd::main::service</span>
|
||||
<span class="title">confdroid_jenkins::main::service</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: jenkins_cd::main::service</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_jenkins::main::service</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="jenkins_cd_3A_3Aparams.html" title="puppet_classes::jenkins_cd::params (puppet_class)">jenkins_cd::params</a></span></dd>
|
||||
<dd><span class='object_link'><a href="confdroid_jenkins_3A_3Aparams.html" title="puppet_classes::confdroid_jenkins::params (puppet_class)">confdroid_jenkins::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>jenkins_cd::main::service.pp Module name: jenkins_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_jenkins::main::service.pp Module name: confdroid_jenkins Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -120,12 +120,12 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/service.pp', line 6</span>
|
||||
|
||||
class jenkins_cd::main::service (
|
||||
class confdroid_jenkins::main::service (
|
||||
|
||||
) inherits jenkins_cd::params {
|
||||
) inherits confdroid_jenkins::params {
|
||||
if $fqdn == $js_host_fqdn {
|
||||
require jenkins_cd::main::files
|
||||
require jenkins_cd::firewall::iptables
|
||||
require confdroid_jenkins::main::files
|
||||
require confdroid_jenkins::firewall::iptables
|
||||
|
||||
service { $js_service:
|
||||
ensure => running,
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: jenkins_cd::main::yumrepo
|
||||
Puppet Class: confdroid_jenkins::main::yumrepo
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::jenkins_cd::main::yumrepo";
|
||||
pathId = "puppet_classes::confdroid_jenkins::main::yumrepo";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (j)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">jenkins_cd::main::yumrepo</span>
|
||||
<span class="title">confdroid_jenkins::main::yumrepo</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: jenkins_cd::main::yumrepo</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_jenkins::main::yumrepo</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="jenkins_cd_3A_3Aparams.html" title="puppet_classes::jenkins_cd::params (puppet_class)">jenkins_cd::params</a></span></dd>
|
||||
<dd><span class='object_link'><a href="confdroid_jenkins_3A_3Aparams.html" title="puppet_classes::confdroid_jenkins::params (puppet_class)">confdroid_jenkins::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>jenkins_cd::main::yumrepo.pp Module name: jenkins_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_jenkins::main::yumrepo.pp Module name: confdroid_jenkins Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -128,27 +128,27 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/yumrepo.pp', line 6</span>
|
||||
|
||||
class jenkins_cd::main::yumrepo (
|
||||
class confdroid_jenkins::main::yumrepo (
|
||||
|
||||
) inherits jenkins_cd::params {
|
||||
) inherits confdroid_jenkins::params {
|
||||
if $fqdn == $js_host_fqdn {
|
||||
yumrepo { 'jenkins':
|
||||
descr => 'Jenkins-stable',
|
||||
baseurl => $js_base_url,
|
||||
gpgcheck => '1',
|
||||
enabled => '1';
|
||||
gpgcheck => $js_gpg_check,
|
||||
enabled => $js_repo_enabled,
|
||||
}
|
||||
|
||||
# import rpm key
|
||||
|
||||
exec { $js_key_url:
|
||||
command => "rpm --import ${js_key_url}",
|
||||
path => '/bin:/usr/bin:/sbin:/usr/sbin',
|
||||
cwd => '/tmp',
|
||||
user => 'root',
|
||||
unless => "rpm -q ${js_key_code} 2>/dev/null",
|
||||
require => Yumrepo['jenkins'],
|
||||
}
|
||||
# exec { $js_key:
|
||||
# command => "rpm --import ${js_base_url}/${js_key}",
|
||||
# path => '/bin:/usr/bin:/sbin:/usr/sbin',
|
||||
# cwd => '/tmp',
|
||||
# user => 'root',
|
||||
# unless => "rpm -q ${js_key_code} 2>/dev/null",
|
||||
# require => Yumrepo['jenkins'],
|
||||
# }
|
||||
}
|
||||
}</pre>
|
||||
</td>
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: jenkins_cd::params
|
||||
Puppet Class: confdroid_jenkins::params
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::jenkins_cd::params";
|
||||
pathId = "puppet_classes::confdroid_jenkins::params";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (j)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">jenkins_cd::params</span>
|
||||
<span class="title">confdroid_jenkins::params</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: jenkins_cd::params</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_jenkins::params</h1>
|
||||
<div class="box_info">
|
||||
|
||||
|
||||
@@ -67,19 +67,19 @@
|
||||
<dt>Inherited by:</dt>
|
||||
<dd>
|
||||
|
||||
<span class='object_link'><a href="jenkins_cd_3A_3Amain_3A_3Adirs.html" title="puppet_classes::jenkins_cd::main::dirs (puppet_class)">jenkins_cd::main::dirs</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_jenkins_3A_3Amain_3A_3Adirs.html" title="puppet_classes::confdroid_jenkins::main::dirs (puppet_class)">confdroid_jenkins::main::dirs</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="jenkins_cd_3A_3Amain_3A_3Afiles.html" title="puppet_classes::jenkins_cd::main::files (puppet_class)">jenkins_cd::main::files</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_jenkins_3A_3Amain_3A_3Afiles.html" title="puppet_classes::confdroid_jenkins::main::files (puppet_class)">confdroid_jenkins::main::files</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="jenkins_cd_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::jenkins_cd::main::config (puppet_class)">jenkins_cd::main::config</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_jenkins_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::confdroid_jenkins::main::config (puppet_class)">confdroid_jenkins::main::config</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="jenkins_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::jenkins_cd::main::install (puppet_class)">jenkins_cd::main::install</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_jenkins_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::confdroid_jenkins::main::install (puppet_class)">confdroid_jenkins::main::install</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="jenkins_cd_3A_3Amain_3A_3Aservice.html" title="puppet_classes::jenkins_cd::main::service (puppet_class)">jenkins_cd::main::service</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_jenkins_3A_3Amain_3A_3Aservice.html" title="puppet_classes::confdroid_jenkins::main::service (puppet_class)">confdroid_jenkins::main::service</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="jenkins_cd_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::jenkins_cd::main::yumrepo (puppet_class)">jenkins_cd::main::yumrepo</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_jenkins_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::confdroid_jenkins::main::yumrepo (puppet_class)">confdroid_jenkins::main::yumrepo</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="jenkins_cd_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::jenkins_cd::firewall::iptables (puppet_class)">jenkins_cd::firewall::iptables</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_jenkins_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::confdroid_jenkins::firewall::iptables (puppet_class)">confdroid_jenkins::firewall::iptables</a></span><br/>
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -93,13 +93,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class holds all parameters for the jenkins_cd module.
|
||||
Class holds all parameters for the confdroid_jenkins module.
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>jenkins_cd::params.pp Module name: jenkins_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_jenkins::params.pp Module name: confdroid_jenkins Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -146,6 +146,42 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>js_gpg_check</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>whether to enable GPG check for Jenkins packages</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>js_repo_enabled</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>whether to enable the Jenkins repository</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>js_host_fqdn</span>
|
||||
@@ -164,6 +200,60 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>js_base_url</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'https://pkg.jenkins.io/redhat-stable/'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>the base URL for the Jenkins repository</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>js_key</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'jenkins.io-2023.key'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>the filename of the Jenkins GPG key to import</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>js_key_code</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'gpg-pubkey-ef5975ca-6421ce2b'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>the code of the Jenkins GPG key to check</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>js_enable_fw</span>
|
||||
@@ -265,11 +355,6 @@
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
@@ -302,15 +387,25 @@
|
||||
48
|
||||
49
|
||||
50
|
||||
51</pre>
|
||||
51
|
||||
52
|
||||
53
|
||||
54
|
||||
55
|
||||
56</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 14</span>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 19</span>
|
||||
|
||||
class jenkins_cd::params (
|
||||
class confdroid_jenkins::params (
|
||||
|
||||
Array $reqpackages = ['jenkins','fontconfig'],
|
||||
String $pkg_ensure = 'latest',
|
||||
String $js_gpg_check = '1',
|
||||
String $js_repo_enabled = '1',
|
||||
String $js_base_url = 'https://pkg.jenkins.io/redhat-stable/',
|
||||
String $js_key = 'jenkins.io-2023.key',
|
||||
String $js_key_code = 'gpg-pubkey-ef5975ca-6421ce2b',
|
||||
|
||||
# server fqdn
|
||||
String $js_host_fqdn = 'jenkins.example.net',
|
||||
@@ -331,19 +426,14 @@ class jenkins_cd::params (
|
||||
$os_name = $facts['os']['name']
|
||||
$os_release = $facts['os']['release']['major']
|
||||
|
||||
# yum repo
|
||||
$js_base_url = 'https://pkg.jenkins.io/redhat-stable/'
|
||||
$js_key_url = "${js_base_url}/jenkins.io-2023.key"
|
||||
$js_key_code = 'gpg-pubkey-ef5975ca-6421ce2b'
|
||||
|
||||
$js_sudoers_file = '/etc/sudoers.d/jenkins_sudo'
|
||||
$js_sudoers_erb = 'jenkins_cd/sudoers.erb'
|
||||
$js_sudoers_erb = 'confdroid_jenkins/sudoers.erb'
|
||||
|
||||
# Service
|
||||
$js_service = 'jenkins'
|
||||
|
||||
# includes must be last
|
||||
include jenkins_cd::main::config
|
||||
include confdroid_jenkins::main::config
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1,11 +1,11 @@
|
||||
## jenkins_cd::firewall::iptables.pp
|
||||
# Module name: jenkins_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
## confdroid_jenkins::firewall::iptables.pp
|
||||
# Module name: confdroid_jenkins
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages Jenkins iptables
|
||||
##############################################################################
|
||||
class jenkins_cd::firewall::iptables (
|
||||
class confdroid_jenkins::firewall::iptables (
|
||||
|
||||
) inherits jenkins_cd::params {
|
||||
) inherits confdroid_jenkins::params {
|
||||
if ($fqdn == $js_host_fqdn) and ($js_enable_fw == true) {
|
||||
firewall { "${js_fw_rule}${js_jenkins_port} tcp port ${js_jenkins_port}":
|
||||
proto => 'tcp',
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
## jenkins_cd::init.pp
|
||||
# Module name: jenkins_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class initializes the jenkins_cd module.
|
||||
## confdroid_jenkins::init.pp
|
||||
# Module name: confdroid_jenkins
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class initializes the confdroid_jenkins module.
|
||||
##############################################################################
|
||||
class jenkins_cd {
|
||||
include jenkins_cd::params
|
||||
class confdroid_jenkins {
|
||||
include confdroid_jenkins::params
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
## jenkins_cd::main::config.pp
|
||||
# Module name: jenkins_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages the logic for the jenkins_cd module.
|
||||
## confdroid_jenkins::main::config.pp
|
||||
# Module name: confdroid_jenkins
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages the logic for the confdroid_jenkins module.
|
||||
##############################################################################
|
||||
class jenkins_cd::main::config (
|
||||
class confdroid_jenkins::main::config (
|
||||
|
||||
) inherits jenkins_cd::params {
|
||||
) inherits confdroid_jenkins::params {
|
||||
if $fqdn == $js_host_fqdn {
|
||||
include jenkins_cd::main::service
|
||||
include confdroid_jenkins::main::service
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
## jenkins_cd::main::dirs.pp
|
||||
# Module name: jenkins_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
## confdroid_jenkins::main::dirs.pp
|
||||
# Module name: confdroid_jenkins
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages Jenkins dirs
|
||||
##############################################################################
|
||||
class jenkins_cd::main::dirs (
|
||||
class confdroid_jenkins::main::dirs (
|
||||
|
||||
) inherits jenkins_cd::params {
|
||||
) inherits confdroid_jenkins::params {
|
||||
if $fqdn == $js_host_fqdn {
|
||||
require jenkins_cd::main::install
|
||||
require confdroid_jenkins::main::install
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
## jenkins_cd::main::files.pp
|
||||
# Module name: jenkins_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
## confdroid_jenkins::main::files.pp
|
||||
# Module name: confdroid_jenkins
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages Jenkins files
|
||||
##############################################################################
|
||||
class jenkins_cd::main::files (
|
||||
class confdroid_jenkins::main::files (
|
||||
|
||||
) inherits jenkins_cd::params {
|
||||
) inherits confdroid_jenkins::params {
|
||||
if $fqdn == $js_host_fqdn {
|
||||
require jenkins_cd::main::dirs
|
||||
require confdroid_jenkins::main::dirs
|
||||
if $js_use_sudo == true {
|
||||
file { $js_sudoers_file:
|
||||
ensure => file,
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
## jenkins_cd::main::install.pp
|
||||
# Module name: jenkins_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
## confdroid_jenkins::main::install.pp
|
||||
# Module name: confdroid_jenkins
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages installation details
|
||||
##############################################################################
|
||||
class jenkins_cd::main::install (
|
||||
class confdroid_jenkins::main::install (
|
||||
|
||||
) inherits jenkins_cd::params {
|
||||
) inherits confdroid_jenkins::params {
|
||||
if $fqdn == $js_host_fqdn {
|
||||
require java_cd
|
||||
require jenkins_cd::main::yumrepo
|
||||
require confdroid_jenkins::main::yumrepo
|
||||
|
||||
package { $reqpackages:
|
||||
ensure => $pkg_ensure,
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
## jenkins_cd::main::service.pp
|
||||
# Module name: jenkins_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
## confdroid_jenkins::main::service.pp
|
||||
# Module name: confdroid_jenkins
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages Jenkins service
|
||||
##############################################################################
|
||||
class jenkins_cd::main::service (
|
||||
class confdroid_jenkins::main::service (
|
||||
|
||||
) inherits jenkins_cd::params {
|
||||
) inherits confdroid_jenkins::params {
|
||||
if $fqdn == $js_host_fqdn {
|
||||
require jenkins_cd::main::files
|
||||
require jenkins_cd::firewall::iptables
|
||||
require confdroid_jenkins::main::files
|
||||
require confdroid_jenkins::firewall::iptables
|
||||
|
||||
service { $js_service:
|
||||
ensure => running,
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
## jenkins_cd::main::yumrepo.pp
|
||||
# Module name: jenkins_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
## confdroid_jenkins::main::yumrepo.pp
|
||||
# Module name: confdroid_jenkins
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages yum repos for the installation
|
||||
##############################################################################
|
||||
class jenkins_cd::main::yumrepo (
|
||||
class confdroid_jenkins::main::yumrepo (
|
||||
|
||||
) inherits jenkins_cd::params {
|
||||
) inherits confdroid_jenkins::params {
|
||||
if $fqdn == $js_host_fqdn {
|
||||
yumrepo { 'jenkins':
|
||||
descr => 'Jenkins-stable',
|
||||
baseurl => $js_base_url,
|
||||
gpgcheck => '1',
|
||||
enabled => '1';
|
||||
gpgcheck => $js_gpg_check,
|
||||
enabled => $js_repo_enabled,
|
||||
}
|
||||
|
||||
# import rpm key
|
||||
|
||||
exec { $js_key_url:
|
||||
command => "rpm --import ${js_key_url}",
|
||||
path => '/bin:/usr/bin:/sbin:/usr/sbin',
|
||||
cwd => '/tmp',
|
||||
user => 'root',
|
||||
unless => "rpm -q ${js_key_code} 2>/dev/null",
|
||||
require => Yumrepo['jenkins'],
|
||||
}
|
||||
# exec { $js_key:
|
||||
# command => "rpm --import ${js_base_url}/${js_key}",
|
||||
# path => '/bin:/usr/bin:/sbin:/usr/sbin',
|
||||
# cwd => '/tmp',
|
||||
# user => 'root',
|
||||
# unless => "rpm -q ${js_key_code} 2>/dev/null",
|
||||
# require => Yumrepo['jenkins'],
|
||||
# }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,20 +1,30 @@
|
||||
## jenkins_cd::params.pp
|
||||
# Module name: jenkins_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class holds all parameters for the jenkins_cd module.
|
||||
## confdroid_jenkins::params.pp
|
||||
# Module name: confdroid_jenkins
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class holds all parameters for the confdroid_jenkins module.
|
||||
# @param [Array] reqpackages which packages to install
|
||||
# @param [String] pkg_ensure which packages to install
|
||||
# @param [String] js_gpg_check whether to enable GPG check for Jenkins packages
|
||||
# @param [String] js_repo_enabled whether to enable the Jenkins repository
|
||||
# @param [String] js_host_fqdn fqdn of the host where Jenkins should run
|
||||
# @param [String] js_base_url the base URL for the Jenkins repository
|
||||
# @param [String] js_key the filename of the Jenkins GPG key to import
|
||||
# @param [String] js_key_code the code of the Jenkins GPG key to check
|
||||
# @param [Boolean] js_enable_fw whether to enable firewall control
|
||||
# @param [String] js_fw_rule the prefix for the firewall rule order
|
||||
# @param [String] js_jenkins_port the port to open for Jenkins
|
||||
# @param [String] js_source_net the source range to open
|
||||
# @param [Boolean] js_use_sudo whether to add Jenkins to sudoers list
|
||||
##############################################################################
|
||||
class jenkins_cd::params (
|
||||
class confdroid_jenkins::params (
|
||||
|
||||
Array $reqpackages = ['jenkins','fontconfig'],
|
||||
String $pkg_ensure = 'latest',
|
||||
String $js_gpg_check = '1',
|
||||
String $js_repo_enabled = '1',
|
||||
String $js_base_url = 'https://pkg.jenkins.io/redhat-stable/',
|
||||
String $js_key = 'jenkins.io-2023.key',
|
||||
String $js_key_code = 'gpg-pubkey-ef5975ca-6421ce2b',
|
||||
|
||||
# server fqdn
|
||||
String $js_host_fqdn = 'jenkins.example.net',
|
||||
@@ -35,17 +45,12 @@ class jenkins_cd::params (
|
||||
$os_name = $facts['os']['name']
|
||||
$os_release = $facts['os']['release']['major']
|
||||
|
||||
# yum repo
|
||||
$js_base_url = 'https://pkg.jenkins.io/redhat-stable/'
|
||||
$js_key_url = "${js_base_url}/jenkins.io-2023.key"
|
||||
$js_key_code = 'gpg-pubkey-ef5975ca-6421ce2b'
|
||||
|
||||
$js_sudoers_file = '/etc/sudoers.d/jenkins_sudo'
|
||||
$js_sudoers_erb = 'jenkins_cd/sudoers.erb'
|
||||
$js_sudoers_erb = 'confdroid_jenkins/sudoers.erb'
|
||||
|
||||
# Service
|
||||
$js_service = 'jenkins'
|
||||
|
||||
# includes must be last
|
||||
include jenkins_cd::main::config
|
||||
include confdroid_jenkins::main::config
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user