Develop ansible role to create & update a ansible json file from multiple /etc/crontab per server
$10-30 USD
Κλειστή
Αναρτήθηκε περίπου 2 χρόνια πριν
$10-30 USD
Πληρωμή κατά την παράδοση
your task is to deliver a bash script which installs defines specific execution times for these entries
PATH=something
17 * * * * root cd / && run-parts --report /etc/[login to view URL]
25 2 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/[login to view URL] )
47 2 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/[login to view URL] )
52 2 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/[login to view URL] )
Story:
as a admin I want to have organized cron execution times over all servers in one central json file.
on the first run the crontab shall be fetched and all current crontab entries need to be added into the json file.
On subsequent runs, the crontab gets overwritten by the terms of Ansible crontab handling with the values from the file.
So the role has to detect if the given server + crontab is new/fresh and either creates the json entries.
The json file resides on the Ansible management server and is a local file from perspecitve of Ansible service.
The json file contains
- hostname
- the FQDN of the hostname,
- a unique id/UUID of the server to identify by this ID (e.g. if the servername changes)
- the cron type (hourly, daily, weekly, monthly, ...)
- and the corresponding execution times
- managedCrontab flag (enabled or disabled), to indicate if this entry is managed by this script and updated on each run automatically the configured times
The file structure as sample can be shared.
logic:
if the hostname+fqdn is missing the file gets updated and the timings have to be defined by the admin
this is done by prompting the admin and showing the "current" crontab timings
if the hostname+fqdn is existing and matching, an update is getting executed and the admin is getting prompted with an timeout of 10 seconds, if he wants to modify the changes. After 10 seconds timeout, no change is done
if the delete operation is taken, the config file needs to be correspondingly update, by disabling the entry
the bash shall do:
your task is to:
- develop the bash script, fully documented
- you will need to test it on Ubuntu 20.04, 22.04, debian 11
you deliver a well documented/commented bash script with a description what is done in the next step to make reviews possible
you deliver into a git repo
Outlook
- if you do a good job on supporting our team, we are open to integrate you into regular work and we will share you more tasks like this
What is our budget?
we do not disclose our budget nor planned hourly rate. Offer us your best bid.
This job is created with a placeholder budget/rate. So ignore our rates/budgets and post your best bid.
Your bid?
Your placed bid is based on the fact, that you have read the job description and it is the upper bound on your bid.
Communication:
Do not wait for our availability here. Just answer, just ask or just reply.
Greetings! Can help you with the bash scripting with documentation and github repo.
Requirements more than the actual scripting so quoted the budget accordingly.
Apologies if you feel offended.
Thank you
I have 8yrs of experience as Linux support engineer. I worked as a technical support engineer in REDHAT for 5 years and I am RHCE, RHCSA and Ansible certified.
Working as Ansible Developer from last 3 year.
I will definitely give you a perfect solution. I have been deploying the application and its updates as part of my full time job.
Come over chat to discuss further.
Hi,
I am a Linux administrator and I good in bash script. I can help you with this and start immediately.
If you need I can share my one bash cli tool which created for last project.
Thanks,
Gughan
Glad to work in this project. I have experience in shell scripting. I am new to Freelance. I have a Mac Machine
to develop the script and test it. But your client specific testing I hope I will get access to your machines.
Hi, Greetings and hoping you are doing well, i welcome you to my profile where quality and client satisfaction is the Priority. I am Expert Dominic and i hope to cooperate with you on your project .
CERTIFIED EXPERT IN LISTED PROJECT SKILLS & REQUIREMENTS,
After KEENLY reading your description and being in possession of all CLEARLY STATED REQUIRED SKILLS (Bash Scripting, Shell Script and Linux) as this is my area of PROFESSIONAL SPECIALISATION having the above QUALIFICATIONS, i hereby humbly request you to consider my bid for QUALITY and PROFESSIONAL work.
###// No timeline & Quality Excuses// Unlimited Revisions// 100% SATISFACTION GUARANTEED###
Message Me We Discuss More About The Project.
incase the project is deleted please hire me directly using the following link;
https://www.freelancer.com/u/topgradeclubltd
THANK-YOU & WELCOME.
I am interested to join you as regular freelancer, having strong experience in ansible,linux, shell sctipts, git, cronjobs etc.
You can rely on me to complete it on time & also the future tasks.