Devops dare for it geeks
Aws infrastructure use cases 1:
Aws infracture use cases 2:
Ansible problem #1
Ansible playbooks #2
write ansible playbook to automate following things under a single play
Note : you can setup all required things first manually then write playbook
Ansible playbook #3
Ansible playbook #4
write a playbook to perform things given below
- How to recover windows and linux instances key if lost { 2 methods}
- If a cloud admin don't want to share instances private with other team mates
- How to upgrade Rhel 7 to rhel 8 in a running website
- Migrate local website to aws cloud web site having data base as well
- Host web site on windows and linux both servers including , .net , php , html and jsp (java)
- Implement virtual hosting in apache & IIS server
Aws infracture use cases 2:
- launch windows and linux based ec2 instance
- create an EBS device of 2GiB and attach to windows instances only then store some pdf and text file in that EBS volume
- create an EBS of 2GiBand attache in linux instances then mount it under document root of apache server and host a html based website.
- create a snaphost of device of linux and windows both machine
Ansible problem #1
- How to check which python version used by ansible
- check python version used by ansible and store output in a file
- name to module of ansible you used for checking
- How to change ansible default inventory file location
- how to list all the host available using ansible command line
Ansible playbooks #2
write ansible playbook to automate following things under a single play
- write playbook to install httpd web server on remote host
- remote user is devops
- local user is student
- run playbook from /home/student/playbook
- make sure you are not using default ansible configuration file
- copy a file abc.html to target machine by the name index.html
- owner of index.html must be apache
- abc.html is located at /home/student/playbook/files/
- start httpd service and make sure it is persistent
- start firewalld service and make sure it is persistent
- maintain firewall rule in that way so that we can access web page
Note : you can setup all required things first manually then write playbook
Ansible playbook #3
- repeat the same playbook in multiple play
- make sure each task must have its different play
Ansible playbook #4
write a playbook to perform things given below
- define 3 variable inside your playbook under vars section
- x: httpd , y: firewalld , z: php
- install all these package in remote host
- make sure you have local user student and remote user devops
- start all required services on remote host
- copy any dummy page to /var/www/html
- page must be index.php
- apply firewall rules to access that php page
Problem #5
- create a shell script under /home/student/ name auto.sh
- that will configure yum repository named auto.repo
- baseurl you can take http://mirror.centos.org/centos-7/7/os/x86_64/
- it must not enable rpm verification
- owner and group will be student
- it must install a package ntp and screen
- also it will check ram and cpu in each node store in a file /root/health.txt on each node
- it will also install a python module numpy using pip ansible module
Problem #6
- create a task under /home/student/playbooks/db.yml
- this task must install mariadb database and start the service
- now create a playbook where import the db.yml first
- if imported task runs successfully then install httpd server and host a sample check.html with content "hello import"
- if imported task if failed then give error message "database is configured"
Thanks for providing such a great information.
ReplyDeleteDevOps Course Videos
DevOps Online Training
ReplyDeleteHi Team,Your problems was quiet Intresting and little intresting to execute it, and procedure given was very useful to execute...thank you for the providing informative content, keep doing!!! For getting DevOps Training in Chennai contact us...
ReplyDeleteCooler Master Sneaker X Gaming PC
DeleteThanks for the information.it was worth reading.
ReplyDeleteDeVops training in Pune
Cooler Master Sneaker X Gaming PC
ReplyDelete