Skip to main content

40.AWS-Ansible Notpad open

40.AWS-Ansible Notpad open

----------------------
.........................       ..........
........AWS-Ansible-Basics.......

Ansible,puppet,chef,saltstack,
ansible----ssh only.. remaing requried clint side agent installation..
..launch 2inst..ubuntu 16.04..
 give names of vms 1.controller and 2.nod1
 name reulation controller...nod1 ping controller... check pingong simillarly vias versa..

 ..login to controller..using putty..
 ....... cahnging host name........
 ..A..login putty.. controller instance....

1.root@ip-10-1-1-100:~# nano /etc/hostname   chane pvt.ip   to controller
2.root@ip-10-1-1-100:~# nano /etc/hosts      past pvt.ip this vm     controller.local   controller
                                           past pvt.ip other vm    node1.local        nod1
3.root@ip-10-1-1-100:~# reboot
...
4.ubuntu@controller:~$ sudo su -
5.root@controller:~# ping node1
...
6.root@controller:~# nano /etc/ssh/sshd_config    ...PasswordAuthentication no to changed yes
7.root@controller:~# service sshd restart
..... passward less login on inst to other inst..
8.ubuntu@controller:~$ sudo su -
9.root@controller:~# exit
logout
10.ubuntu@controller:~$ ssh ubuntu@node1
The authenticity of host 'node1 (10.1.1.57)' can't be established.
ECDSA key fingerprint is SHA256:D10h4nGxStXdXP5VrE+FTkYfqu3KsWb0n3wh6rJUOoU.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'node1,10.1.1.57' (ECDSA) to the list of known hosts.
11.ubuntu@node1's password:       ..........asking pass word..
..
12.ubuntu@controller:~$ ec2-3-83-229-215.compute-1.amazonaws.com  .....enter button 3re times...
13.ubuntu@controller:~$ ls /home/ubuntu/.ssh
...ssh-copy-id ubuntu@node1
authorized_keys  id_rsa  id_rsa.pub  known_hosts    .....rsa..privite file  and pub...public file
...the abou line keys copies to node1... for password less authontification to login from controller server to nod1 server..
so that, instially in node1 server we setting passwards  for 1.users(ubuntu) and 2.root ..then continue below steps

....in nod1 side setting passward like below... in server nod1..
14.b..ubuntu@node1:~$ sudo su -
15.b..root@node1:~# passwd root
16.b..Enter new UNIX password:        ...12345
17.b..Retype new UNIX password:       ...12345
18.b..passwd: password updated successfully
19.b..root@node1:~# passwd ubuntu
20.b..Enter new UNIX password:       ..54321
21.b..Retype new UNIX password:      ..54321
22.b..passwd: password updated successfully
... now copy the key from controller to nod1....so login to server controller..then do like below..
23.root@controller:~# ssh-copy-id ubuntu@node1
24.enter passward ... 54321
..so next..
25.root@controller:~# ssh ubuntu@node1 .......now controller server to nod server login without password.......
.... if exit ..then node1 server to coming back controller server like below...
26.ubuntu@node1:~$ exit
logout
Connection to node1 closed.
root@controller:~#

..install ansible on ubuntu16.04 in google search..

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-ansible-on-ubuntu-16-04
login controller server ubuntu user...
27.ubuntu@controller:~$ sudo apt-add-repository ppa:ansible/ansible  ..ENTER ASKING ENTER ..
28.ubuntu@controller:~$ sudo apt-get update
29.ubuntu@controller:~$ sudo apt-get install ansible     ...asking give  y
30.ubuntu@controller:~$ ansible --version ........getting version inf

...................for adding ansible host file.....

31.ubuntu@controller:~$ sudo su -
32.root@controller:~# cd /etc/ansible/
33.root@controller:/etc/ansible# ll
...now open file add ...
34.root@controller:/etc/ansible# nano hosts  .. add.. [servers]
                                                   controlle node1

35.root@controller:/etc/ansible# ansible -i hosts -m ping all .......install python requried instally .. and youdon controller to node1 .. copied key..
  ubuntu16.04 python install pip .. google search
 36.apt-get update
 37.root@controller:~# apt-get install python-pip  ...aking .. y
 38.root@controller:/etc/ansible#
39.root@controller:/etc/ansible# ansible -i hosts -m ping all
40.root@controller:/etc/ansible# sudo passwd ubuntu  set pass.. 12345
41.root@controller:/etc/ansible# ssh-copy-id ubuntu@controller .. enter 12345
42.ansible -i hosts -m ping all..

video 22.30.. ok.



..B..login putty.. nod1 instance..
ubuntu@ip-10-1-1-57:~$ sudo su -
root@ip-10-1-1-57:~# nano /etc/hostname ..... chane pvt.ip   to controller
root@ip-10-1-1-57:~# nano /etc/hosts   ..... past pvt.ip other vm    node1.local        nod1
                                       .... past pvt.ip this vm     controller.local   controller
root@ip-10-1-1-57:~#ping controller .....working ok...  
root@ip-10-1-1-57:~# reboot
......
ubuntu@node1:~$ sudo su -
root@node1:~# ping controller
...
root@node1:~# nano /etc/ssh/sshd_config    ...PasswordAuthentication no to changed yes
root@node1:~# service sshd restart


---------------------------------

.........................       ..........
........AWS-Ansible-Basics.......

Ansible,puppet,chef,saltstack,
ansible----ssh only.. remaing requried clint side agent installation..
..launch 2inst..ubuntu 16.04..
 give names of vms 1.controller and 2.nod1
 name reulation controller...nod1 ping controller... check pingong simillarly vias versa..

 ..login to controller..using putty..
 ....... cahnging host name........
 ..A..login putty.. controller instance....

1.root@ip-10-1-1-100:~# nano /etc/hostname   chane pvt.ip   to controller
2.root@ip-10-1-1-100:~# nano /etc/hosts      past pvt.ip this vm     controller.local   controller
                                           past pvt.ip other vm    node1.local        nod1
3.root@ip-10-1-1-100:~# reboot
...
4.ubuntu@controller:~$ sudo su -
5.root@controller:~# ping node1

Similarlly Other Server also.......................
...
6.root@controller:~# nano /etc/ssh/sshd_config    ...PasswordAuthentication no to changed yes .............
7.root@controller:~# service sshd restart

..... passward less login on inst to other inst...........................

8.ubuntu@controller:~$ sudo su -
9.root@controller:~# exit
logout
10.ubuntu@controller:~$ ssh ubuntu@node1
The authenticity of host 'node1 (10.1.1.57)' can't be established.
ECDSA key fingerprint is SHA256:D10h4nGxStXdXP5VrE+FTkYfqu3KsWb0n3wh6rJUOoU.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'node1,10.1.1.57' (ECDSA) to the list of known hosts.
11.ubuntu@node1's password:       ..........asking pass word..


..
12.ubuntu@controller:~$ ssh-keygen  .....enter button 3re times...
13.ubuntu@controller:~$ ls /home/ubuntu/.ssh
authorized_keys  id_rsa  id_rsa.pub  known_hosts    .....rsa..privite file  and pub...public file
...the abou line keys copies to node1... for password less authontification to login from controller server to nod1 server..
so that, instially in node1 server we setting passwards  for 1.users(ubuntu) and 2.root ..then continue below steps


....in nod1 side setting passward like below... in server nod1..
14.b..ubuntu@node1:~$ sudo su -
15.b..root@node1:~# passwd root
16.b..Enter new UNIX password:        ...12345
17.b..Retype new UNIX password:       ...12345
18.b..passwd: password updated successfully
19.b..root@node1:~# passwd ubuntu
20.b..Enter new UNIX password:       ..54321
21.b..Retype new UNIX password:      ..54321
22.b..passwd: password updated successfully
... now copy the key from controller to nod1....so login to server controller..then do like below..
23.root@controller:~# ssh-copy-id ubuntu@node1
24.enter passward ... 54321
..so next..
25.root@controller:~# ssh ubuntu@node1 .......now controller server to nod server login without password.......
.... if exit ..then node1 server to coming back controller server like below...
26.ubuntu@node1:~$ exit
logout
Connection to node1 closed.
root@controller:~#

..install ansible on ubuntu16.04 in google search..
...........................................................................................................................................
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-ansible-on-ubuntu-16-04
login controller server ubuntu user...
27.ubuntu@controller:~$ sudo apt-add-repository ppa:ansible/ansible  ..ENTER aSAKING ENTER ..
28.ubuntu@controller:~$ sudo apt-get update
29.ubuntu@controller:~$ sudo apt-get install ansible     ...asking give  y
30.ubuntu@controller:~$ ansible --version ........getting version inf

...................for adding ansible host file.....

31.ubuntu@controller:~$ sudo su -
32.root@controller:~# cd /etc/ansible/
33.root@controller:/etc/ansible# ll
...now open file add ...
34.root@controller:/etc/ansible# nano hosts  .. add.. [servers]
                                                   controlle node1

35.root@controller:/etc/ansible# ansible -i hosts -m ping all .......install python requried instally .. and youdon controller to node1 .. copied key..
  ubuntu16.04 python install pip .. google search
 36.apt-get update
 37.root@controller:~# apt-get install python-pip  ...aking .. y
 38.root@controller:/etc/ansible#
39.root@controller:/etc/ansible# ansible -i hosts -m ping all
40.root@controller:/etc/ansible# sudo passwd ubuntu  set pass.. 12345
41.root@controller:/etc/ansible# ssh-copy-id ubuntu@controller .. enter 12345
42.ansible -i hosts -m ping all..

video 22.30.. ok.




..B..login putty.. nod1 instance..
ubuntu@ip-10-1-1-57:~$ sudo su -
root@ip-10-1-1-57:~# nano /etc/hostname ..... chane pvt.ip   to controller
root@ip-10-1-1-57:~# nano /etc/hosts   ..... past pvt.ip other vm    node1.local        nod1
                                       .... past pvt.ip this vm     controller.local   controller
root@ip-10-1-1-57:~#ping controller .....working ok...  
root@ip-10-1-1-57:~# reboot
......
ubuntu@node1:~$ sudo su -
root@node1:~# ping controller
...
root@node1:~# nano /etc/ssh/sshd_config    ...PasswordAuthentication no to changed yes
root@node1:~# service sshd restart


--------------------------

Comments

Popular posts from this blog

43-Dev-git cmds

43-Dev-git cmds Harsha Veerapalli... .git clone https://github.com/username/repository  git clone https://github.com/NAVEENMJ/1 git status .git init .git status ... getting red cloure  ( a.txt ) .git add file.txt or  (git add .) .git push .git push -u origin master .................. .git branch ---list of branches .git checkout -b branch ...Creaing branches .git merge branch ... presnt in master then merge.. ................................... .git status .git init .git status ... getting red cloure  ( a.txt ) .git add file.txt .git status .... getting green cloure  ( new file: a.txt) [if multipull files in folder use git add .] .git commit -m "COMMIT-1" .. Hear COMMIT-1 Means giving name in genralli changed  name given .git log ......changes ...times.. modifi that file a.txt...... .git status .git add . .git status .git commit -m "COMMIT-2" .cls .git log ..........i want go before comited version....

42-AWS-PROJECT-CERTIFATION

42-AWS-PROJECT-CERTIFATION ... GOOGLE....aws 6r..... 1. 2. 3. 4. 5. 6. PRE SALE -POST SALE::: DPR: Detailed PROJECT REPORT. RFI : REQUSTE FOR INF. RFP : REQUEST FOR PROPEROSAL RFQ : REQ     FOR QOOTE POC: PROOF OF CONCEPT HLD: HIGH LEVEL DEGINE  CEO,LEVEL,  HIG LEVEL DIAGROM LLD: LOW LEVEL DEGINE  .. AWS , VPC, ...... BUILD SHETT: FULL DETIALS OF IP NO.. ALL PIN TO PIN UAT: USER ACCEPTANCEY TEST ORT: OPERATION REDINESS TEST SING OFF : REMAINING AMOUT COLLECT CLOSE ARCHITECTURE: AWS CERTIFICATION: Jayandra Patil AWS .............. AWS sysops bluprint

23.AWS-RedShift

23.AWS-RedShift: Database:: RDS----------DB -OLTP(online transcation.process)-Application writting  to DB (RegularDB Transction) DynamoDB ElastiCache Neptune Amazon Redshift-----DB - OLAP(Online analytic Process)..like filpKart,amzone.. ......................... Amazon Redshift::: goole- aws redshift usee case philips, google- transfering Mysql to redshift, .Clusters-( Subnet groups create ) - Lanch cluster-cluteridentifer,name,username,pass,-Continue-selct nodetype-Continou-(one machine is started we cant terminated but stoped)  -selcet VPC -subnetgroup(in dash board intially created)- Public accessible yes but real time no-securitygroup- continue-launch cluster-view all cluster-wait 10 mintus..-  -Getting Endpoint-(17.07)- .google -sql work bench for redshift-java required-oprn SQL workbench-Manage Drivers-(in aws go in that connet client)-hear also i can downlode SQL Work bench, -JDBC Driver()JDBC4.2),downlode-select cluster-,, .-then go WorkBench-fi...