Documentation by YARD 0.9.36
-Alphabetic Index
- -Puppet Class Listing A-Z
- - -
-
-
-
|
-
File Listing
--
-
-
-
- README - - -
From bce7f4d03346c095b85d82dbb0ef410f6d671186 Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Thu, 16 Apr 2026 14:59:05 +0200 Subject: [PATCH 1/2] OP#586 initial commit after fork --- .gitignore | 2 + Jenkinsfile | 49 +- README.md | 45 +- doc/_index.html | 128 ----- doc/css/common.css | 8 - doc/css/full_list.css | 58 -- doc/css/style.css | 497 ------------------ doc/file.README.html | 153 ------ doc/frames.html | 22 - doc/index.html | 153 ------ doc/js/app.js | 314 ----------- doc/js/full_list.js | 216 -------- doc/js/jquery.js | 4 - doc/puppet_class_list.html | 71 --- doc/puppet_classes/java_cd.html | 121 ----- .../java_cd_3A_3Amain_3A_3Aconfig.html | 130 ----- .../java_cd_3A_3Amain_3A_3Ainstall.html | 134 ----- doc/puppet_classes/java_cd_3A_3Aparams.html | 184 ------- doc/top-level-namespace.html | 98 ---- manifests/init.pp | 12 +- manifests/main/config.pp | 14 +- manifests/main/install.pp | 16 +- manifests/params.pp | 20 +- 23 files changed, 99 insertions(+), 2350 deletions(-) delete mode 100644 doc/_index.html delete mode 100644 doc/css/common.css delete mode 100644 doc/css/full_list.css delete mode 100644 doc/css/style.css delete mode 100644 doc/file.README.html delete mode 100644 doc/frames.html delete mode 100644 doc/index.html delete mode 100644 doc/js/app.js delete mode 100644 doc/js/full_list.js delete mode 100644 doc/js/jquery.js delete mode 100644 doc/puppet_class_list.html delete mode 100644 doc/puppet_classes/java_cd.html delete mode 100644 doc/puppet_classes/java_cd_3A_3Amain_3A_3Aconfig.html delete mode 100644 doc/puppet_classes/java_cd_3A_3Amain_3A_3Ainstall.html delete mode 100644 doc/puppet_classes/java_cd_3A_3Aparams.html delete mode 100644 doc/top-level-namespace.html diff --git a/.gitignore b/.gitignore index a356406..ae5ef54 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ Gemfile.lock FileList .scannerwork +.vscode +.puppet-lint.rc \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 8fde767..febb0f7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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=cd_jenkins \ + -Dsonar.projectKey=confdroid_java \ -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_java.git \ + || git remote add master https://sourcecode.confdroid.com/confdroid/confdroid_java.git + git -c credential.helper="!f() { echo username=${GITEA_USER}; echo password=${GITEA_TOKEN}; }; f" \ + push --force master refs/heads/master:refs/heads/master + ''' + } + } + } + } } } \ No newline at end of file diff --git a/README.md b/README.md index ef81893..8e29bc1 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,24 @@ # Readme -[](https://jenkins.confdroid.com/job/java_cd/) +[](https://jenkins.confdroid.com/job/confdroid_java/) -[[_TOC_]] +- [Readme](#readme) + - [Synopsis](#synopsis) + - [WARNING](#warning) + - [Features](#features) + - [Repo Documentation](#repo-documentation) + - [Dependencies](#dependencies) + - [Deployment](#deployment) + - [SELINUX](#selinux) + - [Known Problems](#known-problems) + - [Support](#support) + - [Tests](#tests) + - [Contact Us](#contact-us) + - [Disclaimer](#disclaimer) ## Synopsis -`java_cd` is a Puppet module to automate installation and configuration of java, mainly to install the binaries and main configuration files for use with other modules, like jenkins_cd. +`confdroid_java` is a Puppet module to automate installation and configuration of java, mainly to install the binaries and main configuration files for use with other modules, like jenkins_cd. ## WARNING @@ -16,7 +28,7 @@ INSTALLATION -* installs java binaries +- installs java binaries as specified. ## Repo Documentation @@ -28,17 +40,17 @@ All dependencies must be included in the catalogue. ## Deployment -* native Puppet deployment +- native Puppet deployment via site.pp or nodes.pp ```bash node 'example.example.net' { - include java_cd + include confdroid_java } ``` -* through Foreman: +- through Foreman: In order to apply parameters through Foreman, the params.pp must be added to the host or host group in question. @@ -52,21 +64,22 @@ All files and directories are configured with correct selinux context. If selinu ## Support -* OS: Rocky 9 -* Puppet 6-8 +- OS: Rocky 9 (all RHEL-based OS should work but Rocky 9 is tested) +- Puppet 8 ## Tests -* Puppet Lint - * excluded tests: - * `--no-variable_scope-check`: not applicable as we are inheriting parameters from params class. the lint check does not distinguish between facts and inherited parameters. -* Puppet Parser -* ERB Template Parser -* Sonar Quality Gate +- Puppet Lint + - excluded tests: + - `--no-variable_scope-check`: not applicable as we are inheriting parameters from params class. the lint check does not distinguish between facts and inherited parameters. +- Puppet Parser +- ERB Template Parser +- Sonar Quality Gate ## Contact Us -[contact Us](https://confdroid.com/contact/) +- [contact Us](https://confdroid.com/contact/) +- [Feedback Portal](https://feedback.confdroid.com/) ## Disclaimer diff --git a/doc/_index.html b/doc/_index.html deleted file mode 100644 index 2c6b76c..0000000 --- a/doc/_index.html +++ /dev/null @@ -1,128 +0,0 @@ - - -
- - -
-
-
-
|
-
| t |
- - - -6 -7 -8- |
-
- # File 'manifests/init.pp', line 6
-
-class java_cd {
- include java_cd::params
-}
- |
-
java_cd::main::config.pp Module name: java_cd Author: Arne Teuke (arne_teuke@confdroid.com)
- -
- - - -6 -7 -8 -9 -10- |
-
- # File 'manifests/main/config.pp', line 6
-
-class java_cd::main::config (
-
-) inherits java_cd::params {
- include java_cd::main::install
-}
- |
-
java_cd::main::install.pp Module name: java_cd Author: Arne Teuke (arne_teuke@confdroid.com)
- -
- - - -6 -7 -8 -9 -10 -11 -12- |
-
- # File 'manifests/main/install.pp', line 6
-
-class java_cd::main::install (
-
-) inherits java_cd::params {
- package { $reqpackages:
- ensure => $pkg_ensure,
- }
-}
- |
-
java_cd::params.pp Module name: java_cd Author: Arne Teuke (arne_teuke@confdroid.com)
- -
- - - -8 -9 -10 -11 -12 -13 -14 -15 -16- |
-
- # File 'manifests/params.pp', line 8
-
-class java_cd::params (
-
- String $reqpackages = 'java-21-openjdk.x86_64',
- String $pkg_ensure = 'latest',
-
-) {
- # includes must be last
- include java_cd::main::config
-}
- |
-
+
+
+
|
+
| t |
+ + + +6 +7 +8+ |
+
+ # File 'manifests/init.pp', line 6
+
+class confdroid_java {
+ include confdroid_java::params
+}
+ |
+
confdroid_java::main::config.pp Module name: confdroid_java Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10+ |
+
+ # File 'manifests/main/config.pp', line 6
+
+class confdroid_java::main::config (
+
+) inherits confdroid_java::params {
+ include confdroid_java::main::install
+}
+ |
+
confdroid_java::main::install.pp Module name: confdroid_java Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12+ |
+
+ # File 'manifests/main/install.pp', line 6
+
+class confdroid_java::main::install (
+
+) inherits confdroid_java::params {
+ package { $js_reqpackages:
+ ensure => $js_pkg_ensure,
+ }
+}
+ |
+
confdroid_java::params.pp Module name: confdroid_java Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +8 +9 +10 +11 +12 +13 +14 +15 +16+ |
+
+ # File 'manifests/params.pp', line 8
+
+class confdroid_java::params (
+
+ String $js_reqpackages = 'java-21-openjdk.x86_64',
+ String $js_pkg_ensure = 'present',
+
+) {
+ # includes must be last
+ include confdroid_java::main::config
+}
+ |
+