Skip to content

Commit

Permalink
add sles12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-rudnouski committed Feb 2, 2022
1 parent 9dfaafc commit 201413e
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/configure/Suse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
# included file
- name: Force all notified handlers to run
meta: flush_handlers
1 change: 1 addition & 0 deletions tasks/repository_install/Suse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
---
113 changes: 113 additions & 0 deletions templates/jenkins_system_config/Suse_configuration.j2
Original file line number Diff line number Diff line change
@@ -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 }}'
2 changes: 2 additions & 0 deletions vars/Suse.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
---
jenkins_requirements: []
jenkins_config_service_path: /etc/sysconfig/jenkins

0 comments on commit 201413e

Please sign in to comment.