SIMULATION
One Package named zsh is dump on ftp://server1.example.com under pub directory. Install the package from ftp server.
A.
SIMULATION
There are Mail servers, Web Servers, DNS Servers and Log Server. Log Server is already configured. You should configure the mail server, web server and dns server to send the logs to log server.
A.
SIMULATION
Add a cron schedule to take full backup of /home on every day at 5:30 pm to /dev/st0 device.
A.
SIMULATION
There were two systems:
system1, main system on which most of the configuration take place
system2, some configuration here
Configure selinux.
Configure your systems that should be running in Enforcing.
A.
Create user accounts
--> A list of users to be created can be found in the file called user_list.yml
which you should download from http://classroom.example.com/user_list.yml and save to /home/admin/ansible/
--> Using the password vault created elsewhere in this exam, create a playbook called
create_user.yml
that creates user accounts as follows:
--> Users with a job description of developer should be:
--> created on managed nodes in the "dev" and "test" host groups assigned the
password from the "dev_pass"
variable and these user should be member of supplementary group "devops".
--> Users with a job description of manager should be:
--> created on managed nodes in the "prod" host group assigned the password from
the "mgr_pass" variable
and these user should be member of supplementary group "opsmgr"
--> Passwords should use the "SHA512" hash format. Your playbook should work using
the vault password file
created elsewhere in this exam.
while practising you to create these file hear. But in exam have to download as per
questation.
user_list.yml file consist:
user:
-
name: user1
job: developer
-
name: user2
job: manager
A. Answer: See the for complete Solution below.
Create an Ansible vault to store user passwords as follows:
*
The name of the vault is valut.yml
*
The vault contains two variables as follows:
-dev_pass with value wakennym
-mgr_pass with value rocky
*
The password to encrypt and decrypt the vault is atenorth
*
The password is stored in the file /home/admin/ansible/password.txt
A.
Answer: See the for complete Solution below.
Create a Shell script /root/program:
The shell script will come back to "user" parameter when you are entering "kernel" parameter. The shell script will come back to "kernel" when you are entering "user" parameter. It will output the standard error when this script "usage:/root/
program kernel|user" don't input any parameter or the parameter you inputted is entered as the requirements.
A. Answer: See the for complete Solution below.
Please open the ip_forward and take effect permanently.
A. Answer: See the for complete Solution below.
Create the users named jeff, marion, harold
A. Answer: See the for complete Solution below.
Whoever creates the file on /data make automatically owner group should be the group owner of /data directory.
A. Answer: See the for complete Solution below.