-
Notifications
You must be signed in to change notification settings - Fork 6
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
base: master
Are you sure you want to change the base?
Conversation
#!/bin/bash | ||
# Script to back up Jenkins | ||
|
||
BACKUP_DIR="/var/backups/jenkins" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be variable
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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 }} |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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
No description provided.