From 201413eb9b904423996702370eb2aebc8741f7ea Mon Sep 17 00:00:00 2001 From: Dzmitry Rudnouski Date: Wed, 2 Feb 2022 11:23:19 +0300 Subject: [PATCH] add sles12 support --- tasks/configure/Suse.yml | 4 + tasks/repository_install/Suse.yml | 1 + .../Suse_configuration.j2 | 113 ++++++++++++++++++ vars/Suse.yml | 2 + 4 files changed, 120 insertions(+) create mode 100644 tasks/configure/Suse.yml create mode 100644 tasks/repository_install/Suse.yml create mode 100644 templates/jenkins_system_config/Suse_configuration.j2 diff --git a/tasks/configure/Suse.yml b/tasks/configure/Suse.yml new file mode 100644 index 00000000..0cf249a5 --- /dev/null +++ b/tasks/configure/Suse.yml @@ -0,0 +1,4 @@ +--- +# included file +- name: Force all notified handlers to run + meta: flush_handlers diff --git a/tasks/repository_install/Suse.yml b/tasks/repository_install/Suse.yml new file mode 100644 index 00000000..ed97d539 --- /dev/null +++ b/tasks/repository_install/Suse.yml @@ -0,0 +1 @@ +--- diff --git a/templates/jenkins_system_config/Suse_configuration.j2 b/templates/jenkins_system_config/Suse_configuration.j2 new file mode 100644 index 00000000..2e1f6af8 --- /dev/null +++ b/templates/jenkins_system_config/Suse_configuration.j2 @@ -0,0 +1,113 @@ +## Path: Development/Jenkins +## Description: Jenkins Automation Server +## Type: string +## Default: "/var/lib/jenkins" +## ServiceRestart: jenkins +# +# Directory where Jenkins store its configuration and working +# files (checkouts, build reports, artifacts, ...). +# +JENKINS_HOME='{{ jenkins2_home_directory }}' + +## Type: string +## Default: "/bin/bash" +## ServiceRestart: jenkins +# +# Shell used to initialize the Jenkins server's environment. +# Setting this option to the path of a shell executable allows +# initialization of the Jenkins server environment using +# standard shell startup scripts. +# Disabling this option causes the Jenkins server to be run +# with a minimal environment. +# +JENKINS_INIT_SHELL="/bin/bash" + +## Type: string +## Default: "" +## ServiceRestart: jenkins +# +# Java runtime to run Jenkins +# When left empty, the current system default JRE, as defined +# by update-alternatives(8), is used. +# +JENKINS_JAVA_HOME="" + +## Type: string +## Default: "jenkins" +## ServiceRestart: jenkins +# +# Unix user account that runs the Jenkins daemon +# Be careful when you change this, as you need to update +# permissions of $JENKINS_HOME and /var/log/jenkins, +# and if you have already run Jenkins, potentially other +# directories such as /var/cache/jenkins . +# +JENKINS_USER='{{ jenkins2_user }}' + +## Type: integer(-20:20) +## Default: 0 +## ServiceRestart: jenkins +# +# The nice level at which the Jenkins server (and its build jobs) run. +# +JENKINS_NICE="0" + +## Type: string +## Default: "-Djava.awt.headless=true" +## ServiceRestart: jenkins +# +# Options to pass to java when running Jenkins. +# +JENKINS_JAVA_OPTIONS='{{ jenkins2_config_java_options }}{{ (jenkins2_permissive_script_enabled | bool) | ternary(" -Dpermissive-script-security.enabled=no_security","") }}' + +## Type: integer(0:65535) +## Default: 8080 +## ServiceRestart: jenkins +# +# Port Jenkins is listening on. +# Set to -1 to disable +# +JENKINS_PORT={{ jenkins2_config_http_port }} + + +## Type: integer(1:9) +## Default: 5 +## ServiceRestart: jenkins +# +# Debug level for logs -- the higher the value, the more verbose. +# 5 is INFO. +# +JENKINS_DEBUG_LEVEL={{ jenkins2_config_debug_level }} + +## Type: yesno +## Default: no +## ServiceRestart: jenkins +# +# Whether to enable access logging or not. +# +JENKINS_ENABLE_ACCESS_LOG='{{ jenkins2_config_enable_access_log }}' + +## Type: integer +## Default: 100 +## ServiceRestart: jenkins +# +# Maximum number of HTTP worker threads. +# +JENKINS_HANDLER_MAX={{ jenkins2_config_handler_max }} + +## Type: integer +## Default: 20 +## ServiceRestart: jenkins +# +# Maximum number of idle HTTP worker threads. +# +JENKINS_HANDLER_IDLE={{ jenkins2_config_handler_idle }} + +## Type: string +## Default: "" +## ServiceRestart: jenkins +# +# Pass arbitrary arguments to Jenkins. +# Full option list: java -jar jenkins.war --help +# +JENKINS_ARGS='{{ jenkins2_config_args }}' diff --git a/vars/Suse.yml b/vars/Suse.yml index ed97d539..54928221 100644 --- a/vars/Suse.yml +++ b/vars/Suse.yml @@ -1 +1,3 @@ --- +jenkins_requirements: [] +jenkins_config_service_path: /etc/sysconfig/jenkins