Đã Đóng

Develop ansible role to create & update a ansible json file from multiple /etc/crontab per server

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.

Kĩ năng: Linux, Shell Script, Bash Scripting, Ansible

Về khách hàng:
( 43 nhận xét ) Stuttgart, Germany

ID dự án: #33970836

13 freelancer chào giá trung bình$174 cho công việc này

udayarpandey2022

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

$100 USD trong 40 ngày
(475 Nhận xét)
7.1
ashkanull

hello, There are a couple of things to consider depending on your scripts and the amount of work that each script needs to do. for the script part why don't we call the scripts directly from crontab file. this might g Thêm

$900 USD trong 14 ngày
(12 Nhận xét)
4.4
aniketbhav31

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 de Thêm

$100 USD trong 7 ngày
(1 Nhận xét)
3.1
(11 Nhận xét)
3.5
gkhimaru

hello, I'm good in scripting and ansible. Let me help you with this task. Add me to chat to discuss further and proceed.

$35 USD trong 3 ngày
(2 Nhận xét)
1.6
guguap900

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

$100 USD trong 7 ngày
(1 Nhận xét)
1.2
elishapthompson

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 machi Thêm

$88.06 USD trong 33 ngày
(0 Nhận xét)
0.0
topgradeclubltd

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 I Thêm

$30 USD trong 4 ngày
(0 Nhận xét)
0.0
muhammadu123

dslcnocvbsnadlucvasbkvbdsvbscvbsdacilasdbkcsdabcnsabicaslkcnsacbsapcasl;icbua;scbCUIBASLIDCBSACKBSDLICUBASCDBCL

$20 USD trong 1 ngày
(0 Nhận xét)
0.0
(0 Nhận xét)
0.0
noisecast

the utility sounds useful and quite interesting to build. i would love to discuss this project with you.

$50 USD trong 7 ngày
(0 Nhận xét)
0.0
ranjanamishra990

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.

$20 USD trong 7 ngày
(0 Nhận xét)
0.0
Martin55

I think my knowledge can help me do this task and tray new way earn money with help internet.

$100 USD trong 8 ngày
(0 Nhận xét)
0.0