Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jenkins (install + user creation + backup) #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

shevam997
Copy link
Collaborator

No description provided.

@shevam997 shevam997 requested a review from oo4abhishek August 5, 2024 09:50
#!/bin/bash
# Script to back up Jenkins

BACKUP_DIR="/var/backups/jenkins"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be variable

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pass details about role

cron:
name: "Jenkins backup"
minute: "0"
hour: "2"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cron configuration should be variable

apt:
name:
- openjdk-11-jdk
- jenkins={{ jenkins_version }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will limit the versions to install

---
- name: Create Jenkins users
uri:
url: "{{ jenkins_master_url }}/securityRealm/createAccountByAdmin"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this need any additional plugin in Jenkins

url: "{{ jenkins_master_url }}/securityRealm/createAccountByAdmin"
method: POST
user: "admin"
password: "admin_password"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use variable

jenkins_backup_dir: "/var/backups/jenkins"
jenkins_backup_script: "jenkins_backup.sh"
jenkins_backup_cron: "0 2 * * * /usr/local/bin/jenkins_backup.sh"
jenkins_users:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also add full name, email entity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants