Skip to content

cryptoboxcomics/jenkins-slave-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins-Slave-Setup

A role to set up the Jenkins slave.

Requirements

Inside of files, have the public key of your Jenkins master copied in the file "authorized_keys."

In addition, if you ever want to add a new password, please use the following command:

ansible all -i localhost, -m debug -a "msg={{ '<your-password>' | password_hash('sha512', 'mysecretsalt') }}"

to generate your hashed passwords, or else logging in will cause Ansible to think your variables is a hash and give you two conflicting password. This is why most folks were having issues with "password incorrect" error.

Role Variables

Variable Name Default value
jenkins_password $6$mysecretsalt$MIJffjeQyfrKKrGkprGrDL/g2mCJa53koLmYQuuLmY9y37pDvGKPXU1Ov3RbMi.tpQ9cWvxAzUVtBLe7KrZoU.
remote_root_directory /home/jenkins

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  roles:
     - jenkins-slave-setup

License

BSD

Author Information

Author name: Amber Lee

Email: [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages