Skip to main content

41.AWS-Puppet-Basicscc

41.AWS-Puppet-Basicscc

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


.................
..create two vms 1.puppet managment..20gb. puppetmaster     2.puppet clint...puppetclint

1.login to puppet management
ubuntu@ip-10-1-1-100:~$ sudo su -
root@ip-10-1-1-100:~# nano /etc/hostname   ....... replace pvtip to puppet
root@ip-10-1-1-100:~# nano /etc/hosts ...add 10.1.1.100      puppet.local    puppet         
                                             10.1.2.200      puppetagent.local       puppetagent

in puppet.local =host name.domain name

ec2-100-27-7-86.compute-1.amazonaws.com..... FQDN (fully Qualified  domain name)
----------------  *******************
host name(server name)   domain name

root@ip-10-1-1-100:~# reboot

...........Simillarlly..............

..login to puppetclinte......................................................( Clinte )

ubuntu@ip-10-1-2-200:~$ sudo su -
root@ip-10-1-2-200:~# nano /etc/hostname ..replace pvti.p to puppetagent
root@ip-10-1-2-200:~# nano /etc/hosts ....10.1.1.100      puppet.local    puppet         
..                                          10.1.1.200      puppetagent.local       puppetagent
root@puppetagent:~# ping puppet
..

....in puppet.........................................

..google.. install puppet on ubuntu 16.04 ,,
https://puppet.com/docs/puppet/5.3/puppet_platform.html .....websit

wget https://apt.puppetlabs.com/puppet5-release-xenial.deb
sudo dpkg -i puppet5-release-xenial.deb
sudo apt update

https://puppet.com/docs/puppetserver/5.2/install_from_packages.html ......websit

apt-get install puppetserver
reboot.....
service puppetserver start

root@puppet:~# cd /opt/puppetlabs/puppet/bin
root@puppet:/opt/puppetlabs/puppet/bin# ./puppet --version
root@puppet:/opt/puppetlabs/puppet/bin# service puppet status

root@puppet:/# ping puppetagent


..login to puppetclinte....................................................( Clinte )

wget https://apt.puppetlabs.com/puppet5-release-xenial.deb
sudo dpkg -i puppet5-release-xenial.deb
sudo apt update

https://puppet.com/docs/puppet/5.3/install_linux.html  ..websit google

sudo apt-get install puppet-agent
...
cp /opt/puppetlabs/puppet/bin/* /usr/local/bin/
root@puppetagent:~# puppet -t
...

...........in puppet........................................................

root@puppet:~# cp /opt/puppetlabs/puppet/bin/* /usr/local/bin/
root@puppet:~# puppet cert list
..
puppet cert list
puppet cert list -all
puppet cert list
puppet cert sign puppetagent.local
...
cd /etc/puppetlabs/
code/environments/
ll ..........hear we can creat differen environment folders (ex: production, testing,)
cd production/ ,ll
cd manifests/            ........her manifests in chefe ..coock books
google search .create a user in puppet manifest ..below link directlly
https://puppet.com/docs/puppet/4.9/quick_start_user_group.html


     user { 'testuser1':
        ensure           => 'present',
              home             => '/home/testuser1',
              password         => '!!', ...................enter encripted pass..
              password_max_age => '99999',
              password_min_age => '0',
              shell            => '/bin/bash',
              uid              => '501',
     }

watch video: 29:30 video number 29.30


........................................................in Puppetagent................
puppet agent-t
..65 ..line in managment after..
puppet agent-t       ...geeting test user created..
created or not check...
cat /etc/passwd   ...see last .. user created

............................................................................................




.............................IN PUPPET.....................

..
openssl passwd -1   .. give passwd... then encripted passward given past in to abou scrip
nano site.pp        ....past that code ... pp means poppet polyice
then go clint...

user { 'testuser2':
        ensure           => 'absent',
              home             => '/home/testuser2',
              password         => '!!',...................enter encripted pass
              password_max_age => '99999',
              password_min_age => '0',
              shell            => '/bin/bash',
              uid              => '502',
     }
watch..video 34.00...

................................................
........................................................in Puppetagent................
puppet agent-t
..65 ..line in managment after..
puppet agent-t       ...geeting test user created..
created or not check...
cat /etc/passwd   ...see last .. user created

............................................................................................




user { 'testuser1':
        ensure           => 'absent',
              home             => '/home/testuser2',
              password         => '!!',...................enter encripted pass
              password_max_age => '99999',
              password_min_age => '0',
              shell            => '/bin/bash',
              uid              => '501',
     }

user { 'testuser2':
    ensure           => 'present',
              home             => '/home/testuser2',
              password         => '!!',...................enter encripted pass
              password_max_age => '99999',
              password_min_age => '0',
              shell            => '/bin/bash',
              uid              => '502',
     }




................................................
........................................................in Puppetagent................
puppet agent-t
..65 ..line in managment after..
puppet agent-t       ...geeting test user deleted..
created or not check...
cat /etc/passwd   ...see last .. user deleted..

............................................................................................


installing nginx into  puppet..(39.09)...











----------------------------------------------------------------------
========================================================================
.................
..create two vms 1.puppet managment..20gb. puppetmaster     2.puppet clint...puppetclint

1.login to puppet management
ubuntu@ip-10-1-1-100:~$ sudo su -
root@ip-10-1-1-100:~# nano /etc/hostname   ....... replace pvtip to puppet
root@ip-10-1-1-100:~# nano /etc/hosts ...add 10.1.1.100      puppet.local    puppet         
                                             10.1.2.200      puppetagent.local       puppetagent

in puppet.local =host name.domain name

ec2-100-27-7-86.compute-1.amazonaws.com..... FQDN (fully Qualified  domain name)
----------------  *******************
host name(server name)   domain name

root@ip-10-1-1-100:~# reboot
..google.. install puppet on ubuntu 16.04 ,,
https://puppet.com/docs/puppet/5.3/puppet_platform.html .....websit
wget https://apt.puppetlabs.com/puppet5-release-xenial.deb
sudo dpkg -i puppet5-release-xenial.deb
sudo apt update
https://puppet.com/docs/puppetserver/5.2/install_from_packages.html ......websit
apt-get install puppetserver
reboot.....
service puppetserver start
root@puppet:~# cd /opt/puppetlabs/puppet/bin
root@puppet:/opt/puppetlabs/puppet/bin# ./puppet --version
root@puppet:/opt/puppetlabs/puppet/bin# service puppet status
.....
root@puppet:/# ping puppetagent
...
root@puppet:~# cp /opt/puppetlabs/puppet/bin/* /usr/local/bin/
root@puppet:~# puppet cert list
..
puppet cert list
puppet cert list -all
puppet cert list
puppet cert sign puppetagent.local
...
cd /etc/puppetlabs/
code/environments/
ll ..........hear we can creat differen environment folders (ex: production, testing,)
cd production/ ,ll
cd manifests/            ........her manifests in chefe ..coock books
google search .create a user in puppet manifest ..below link directlly
https://puppet.com/docs/puppet/4.9/quick_start_user_group.html

     user { 'jargyle':
    ensure           => 'present',
              home             => '/home/testuser1',
              password         => '!!',
              password_max_age => '99999',
              password_min_age => '0',
              shell            => '/bin/bash',
              uid              => '501',
     }

watch video: 29:30 video number 29.30
..
openssl passwd -1   .. give passwd... then encripted passward given past in to abou scrip
nano site.pp        ....past that code ... pp means poppet polyice
then go clint...

user { 'jargyle':
    ensure           => 'present',
              home             => '/home/testuser2',
              password         => '!!',
              password_max_age => '99999',
              password_min_age => '0',
              shell            => '/bin/bash',
              uid              => '502',
     }
watch..video 34.00...









2..login to puppetclinte......

ubuntu@ip-10-1-2-200:~$ sudo su -
root@ip-10-1-2-200:~# nano /etc/hostname ..replace pvti.p to puppetagent
root@ip-10-1-2-200:~# nano /etc/hosts ....10.1.1.100      puppet.local    puppet         
..                                          10.1.1.200      puppetagent.local       puppetagent
root@puppetagent:~# ping puppet
..

wget https://apt.puppetlabs.com/puppet5-release-xenial.deb
sudo dpkg -i puppet5-release-xenial.deb
sudo apt update
https://puppet.com/docs/puppet/5.3/install_linux.html  ..websit google
sudo apt-get install puppet-agent
...
cp /opt/puppetlabs/puppet/bin/* /usr/local/bin/
root@puppetagent:~# puppet -t
...
puppet agent-t
..65 ..line in managment after..
puppet agent-t       ...geeting test user created..
created or not check...
cat /etc/passwd   ...see last .. user created




==========================================================================

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

Azure Devops tutorial

 Azure Devops tutorial: web sit-  Projects - Home (azure.com) AZURE DEVOPS - Organization - Projects Under project- --------- Under Pipelines ---> Pipelines( CI ) -  Under Pipelines --->Releases( CD ) -  ------------------------------------------------------------------------------------------------------------------------- Azure Pipelines:--- Pipeline structure:- A pipeline is one or more stages that describe a CI/CD process. Stages are the major divisions in a pipeline. The stages "Build this app," "Run these tests," and "Deploy to preproduction" are good examples. A stage is one or more jobs, which are units of work assignable to the same machine. You can arrange both stages and jobs into dependency graphs. Examples include "Run this stage before that one" and "This job depends on the output of that job." A job is a linear series of steps. Steps can be tasks, scripts, or references to external templates. This hierarchy is refle...