GithubHelp home page GithubHelp logo

imranansari / ansible-jenkins-extra Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wunzeco/ansible-jenkins-extra

0.0 2.0 0.0 29 KB

Extra Jenkins config like create job credentials, set aws credential profile, copy ssh keys

Python 92.49% Ruby 7.51%

ansible-jenkins-extra's Introduction

Jenkins-extra

Applies extra configuration to Jenkins like create job credentials, set aws profile credentials, copy ssh keys etc

The password/secrets that will be configured by this role should be stored in an ansible-vault encrypted file

Ensure credentials and credentials-bindings plugins are installed on Jenkins.

Assumption

This role assumes that it will be applied on a host with a running Jenkins server

Example

For more complete example on configuration please see defaults/main.yml.

- hosts: jenkins

  ##Remember to keep secrets/passwords in encrypted vault file 
  ## vars_files:
  ##   - /path/to/your/encrypted-vault.file

  vars:
    jenkins_extra_job_creds_config:
      - id: infra-myawesomerepo-git-creds-id
        description: infra-myawesomerepo
        key_file: /var/lib/jenkins/.ssh/infra-myawesomerepo
        user: jenkins
        type: ssh-private-key
      - id: infra-aws-access-key-id-creds-id
        description: infra-aws-access-key-id
        secret: 'someAwsAccessKeyId'
        type: secret-text
      - id: infra-nexus-login-creds-id
        description: infra-nexus-login
        user: jenkins
        pass: P@ssword!
        type: userpass

  roles:
    - jenkins-extra

Testing

Run kitchen test command to test this repo

Dependencies

none

ansible-jenkins-extra's People

Watchers

 avatar  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.