Giter Club home page Giter Club logo

ansible-jenkins-script-security's Introduction

wcm_io_devops.jenkins_script_security

This role manages the approval of signatures for the Script Security Plugin. The role can add or remove signatures by keeping unmanaged signatures in place.

For the management a groovy script is used that is directly executed in the Jenkins, so the changes are applied immediately without need to restart the instance.

Requirements

This role requires Ansible 2.4 or higher and a running Jenkins on the target instance.

Role Variables

Available variables are listed below, along with their default values.

jenkins_script_security_admin_username: admin

Jenkins admin username.

jenkins_script_security_admin_password: admin

Jenkins admin password.

jenkins_script_security_jenkins_hostname: localhost

Hostname of the jenkins instance.

jenkins_script_security_jenkins_port: 8080

HTTP port of the jenkins instance.

jenkins_script_security_jenkins_url_prefix: ""

Url prefix of the jenkins instance, e.g. when running in tomcat.

jenkins_script_security_jenkins_update_dir: "{{ jenkins_plugins_jenkins_home }}/updates"

Path to the jenkins update directory.

jenkins_script_security_jenkins_base_url: "http://{{ jenkins_script_security_jenkins_hostname }}:{{ jenkins_script_security_jenkins_port }}{{ jenkins_script_security_jenkins_url_prefix }}"

The base url of the jenkins instance.

jenkins_script_security_approved_signatures_present: []

List of signature to approve. List of strings as present in the scriptApproval.xml but without the encapsulating <string></string>.

jenkins_script_security_approved_signatures_absent: []

List of signatures to remove. List of strings as present in the scriptApproval.xml but without the encapsulating <string></string>.

Dependencies

The role has no dependencies.

Example Playbook

Approves the signatures for creating a new ArrayList and getting the index of an Element in a list.

- hosts: jenkins
  vars:
    jenkins_script_security_approved_signatures_present:
      - method java.util.List indexOf java.lang.Object
      - new java.util.ArrayList
  roles:
    - role: wcm_io_devops.jenkins_script_security

License

Apache 2.0

ansible-jenkins-script-security's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.