Sunday, October 7, 2018

Puppet installatoin via yum

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


[root@puppetmaster ~]#  rpm -Uvh https://yum.puppetlabs.com/puppet5/puppet5-release-el-7.noarch.rpm
Retrieving https://yum.puppetlabs.com/puppet5/puppet5-release-el-7.noarch.rpm
warning: /var/tmp/rpm-tmp.gBV2Pb: Header V4 RSA/SHA256 Signature, key ID ef8d349f: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:puppet5-release-5.0.0-4.el7      ################################# [100%]
[root@puppetmaster ~]# yum install -y puppetserver
Loaded plugins: fastestmirror, langpacks
base                                                                                                             | 3.6 kB  00:00:00
epel/x86_64/metalink                                                                                             | 7.9 kB  00:00:00
extras                                                                                                           | 3.4 kB  00:00:00
puppet5                                                                                                          | 2.5 kB  00:00:00
updates                                                                                                          | 3.4 kB  00:00:00
puppet5/x86_64/primary_db                                                                                        | 128 kB  00:00:00
Loading mirror speeds from cached hostfile
 * base: mirror.nbrc.ac.in
 * epel: mirror1.ku.ac.th
 * extras: mirrors.fibergrid.in
 * updates: mirrors.fibergrid.in
Resolving Dependencies
--> Running transaction check
---> Package puppetserver.noarch 0:5.3.5-1.el7 will be installed
--> Processing Dependency: puppet-agent >= 4.99.0 for package: puppetserver-5.3.5-1.el7.noarch
--> Running transaction check
---> Package puppet-agent.x86_64 0:5.5.6-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================
 Package                            Arch                         Version                            Repository                     Size
========================================================================================================================================
Installing:
 puppetserver                       noarch                       5.3.5-1.el7                        puppet5                        67 M
Installing for dependencies:
 puppet-agent                       x86_64                       5.5.6-1.el7                        puppet5                        20 M

Transaction Summary
========================================================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 86 M
Installed size: 86 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/puppet5/packages/puppet-agent-5.5.6-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID ef8d349f: NOKEY
Public key for puppet-agent-5.5.6-1.el7.x86_64.rpm is not installed
(1/2): puppet-agent-5.5.6-1.el7.x86_64.rpm                                                                       |  20 MB  00:00:10
(2/2): puppetserver-5.3.5-1.el7.noarch.rpm                                                                       |  67 MB  00:00:26
----------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                   3.3 MB/s |  86 MB  00:00:26
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppet5-release
Importing GPG key 0xEF8D349F:
 Userid     : "Puppet, Inc. Release Key (Puppet, Inc. Release Key) <release@puppet.com>"
 Fingerprint: 6f6b 1550 9cf8 e59e 6e46 9f32 7f43 8280 ef8d 349f
 Package    : puppet5-release-5.0.0-4.el7.noarch (installed)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-puppet5-release
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows:
ipa-client-4.4.0-14.el7.centos.6.x86_64 has installed conflicts freeipa-client: ipa-client-4.4.0-14.el7.centos.6.x86_64
ipa-client-common-4.4.0-14.el7.centos.6.noarch has installed conflicts freeipa-client-common: ipa-client-common-4.4.0-14.el7.centos.6.noarch
ipa-common-4.4.0-14.el7.centos.6.noarch has installed conflicts freeipa-common: ipa-common-4.4.0-14.el7.centos.6.noarch
  Installing : puppet-agent-5.5.6-1.el7.x86_64                                                                                      1/2
  Installing : puppetserver-5.3.5-1.el7.noarch                                                                                      2/2
usermod: no changes
  Verifying  : puppet-agent-5.5.6-1.el7.x86_64                                                                                      1/2
  Verifying  : puppetserver-5.3.5-1.el7.noarch                                                                                      2/2

Installed:
  puppetserver.noarch 0:5.3.5-1.el7

Dependency Installed:
  puppet-agent.x86_64 0:5.5.6-1.el7

Complete!
[root@puppetmaster ~]#  yum -y install ntpdate
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.nbrc.ac.in
 * epel: mirror1.ku.ac.th
 * extras: mirrors.fibergrid.in
 * updates: mirrors.fibergrid.in
Resolving Dependencies
--> Running transaction check
---> Package ntpdate.x86_64 0:4.2.6p5-25.el7.centos.1 will be updated
--> Processing Dependency: ntpdate = 4.2.6p5-25.el7.centos.1 for package: ntp-4.2.6p5-25.el7.centos.1.x86_64
---> Package ntpdate.x86_64 0:4.2.6p5-28.el7.centos will be an update
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.2)(64bit) for package: ntpdate-4.2.6p5-28.el7.centos.x86_64
--> Running transaction check
---> Package ntp.x86_64 0:4.2.6p5-25.el7.centos.1 will be updated
---> Package ntp.x86_64 0:4.2.6p5-28.el7.centos will be an update
---> Package openssl-libs.x86_64 1:1.0.1e-60.el7_3.1 will be updated
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.1e-60.el7_3.1 for package: 1:openssl-1.0.1e-60.el7_3.1.x86_64
---> Package openssl-libs.x86_64 1:1.0.2k-12.el7 will be an update
--> Running transaction check
---> Package openssl.x86_64 1:1.0.1e-60.el7_3.1 will be updated
---> Package openssl.x86_64 1:1.0.2k-12.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================
 Package                          Arch                       Version                                     Repository                Size
========================================================================================================================================
Updating:
 ntpdate                          x86_64                     4.2.6p5-28.el7.centos                       base                      86 k
Updating for dependencies:
 ntp                              x86_64                     4.2.6p5-28.el7.centos                       base                     549 k
 openssl                          x86_64                     1:1.0.2k-12.el7                             base                     492 k
 openssl-libs                     x86_64                     1:1.0.2k-12.el7                             base                     1.2 M

Transaction Summary
========================================================================================================================================
Upgrade  1 Package (+3 Dependent packages)

Total download size: 2.3 M
Downloading packages:
No Presto metadata available for base
(1/4): ntpdate-4.2.6p5-28.el7.centos.x86_64.rpm                                                                  |  86 kB  00:00:01
(2/4): ntp-4.2.6p5-28.el7.centos.x86_64.rpm                                                                      | 549 kB  00:00:02
(3/4): openssl-libs-1.0.2k-12.el7.x86_64.rpm                                                                     | 1.2 MB  00:00:04
(4/4): openssl-1.0.2k-12.el7.x86_64.rpm                                                                          | 492 kB  00:00:06
----------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                   347 kB/s | 2.3 MB  00:00:06
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : 1:openssl-libs-1.0.2k-12.el7.x86_64                                                                                  1/8
  Updating   : ntpdate-4.2.6p5-28.el7.centos.x86_64                                                                                 2/8
  Updating   : ntp-4.2.6p5-28.el7.centos.x86_64                                                                                     3/8
  Updating   : 1:openssl-1.0.2k-12.el7.x86_64                                                                                       4/8
  Cleanup    : ntp-4.2.6p5-25.el7.centos.1.x86_64                                                                                   5/8
  Cleanup    : ntpdate-4.2.6p5-25.el7.centos.1.x86_64                                                                               6/8
  Cleanup    : 1:openssl-1.0.1e-60.el7_3.1.x86_64                                                                                   7/8
  Cleanup    : 1:openssl-libs-1.0.1e-60.el7_3.1.x86_64                                                                              8/8
  Verifying  : ntp-4.2.6p5-28.el7.centos.x86_64                                                                                     1/8
  Verifying  : ntpdate-4.2.6p5-28.el7.centos.x86_64                                                                                 2/8
  Verifying  : 1:openssl-1.0.2k-12.el7.x86_64                                                                                       3/8
  Verifying  : 1:openssl-libs-1.0.2k-12.el7.x86_64                                                                                  4/8
  Verifying  : 1:openssl-1.0.1e-60.el7_3.1.x86_64                                                                                   5/8
  Verifying  : ntpdate-4.2.6p5-25.el7.centos.1.x86_64                                                                               6/8
  Verifying  : ntp-4.2.6p5-25.el7.centos.1.x86_64                                                                                   7/8
  Verifying  : 1:openssl-libs-1.0.1e-60.el7_3.1.x86_64                                                                              8/8

Updated:
  ntpdate.x86_64 0:4.2.6p5-28.el7.centos

Dependency Updated:
  ntp.x86_64 0:4.2.6p5-28.el7.centos            openssl.x86_64 1:1.0.2k-12.el7            openssl-libs.x86_64 1:1.0.2k-12.el7

Complete!
[root@puppetmaster ~]#  ntpdate 0.centos.pool.ntp.org
26 Sep 11:34:25 ntpdate[7072]: adjust time server 80.92.126.65 offset -0.001449 sec
[root@puppetmaster ~]# ntpdate
26 Sep 11:34:29 ntpdate[7073]: no servers can be used, exiting
[root@puppetmaster ~]# ntp
ntpd        ntpdate     ntpdc       ntp-keygen  ntpq        ntpstat     ntptime
[root@puppetmaster ~]# ntpstat
Unable to talk to NTP daemon. Is it running?
[root@puppetmaster ~]# systemctl start ntpd
[root@puppetmaster ~]# ntpstat
unsynchronised
  time server re-starting
   polling server every 8 s
[root@puppetmaster ~]# ntpdate
26 Sep 11:35:05 ntpdate[7085]: no servers can be used, exiting
[root@puppetmaster ~]# ntptime
ntp_gettime() returns code 0 (OK)
  time df5625ba.0e35c5b0  Wed, Sep 26 2018 11:35:22.055, (.055508370),
  maximum error 1239605 us, estimated error 21119 us, TAI offset 0
ntp_adjtime() returns code 0 (OK)
  modes 0x0 (),
  offset -55889.694 us, frequency -0.399 ppm, interval 1 s,
  maximum error 1239605 us, estimated error 21119 us,
  status 0x2001 (PLL,NANO),
  time constant 6, precision 0.001 us, tolerance 500 ppm,
[root@puppetmaster ~]# date
Wed Sep 26 11:35:29 EDT 2018
[root@puppetmaster ~]# timedatectl set-timezone Asia/Kolkata
[root@puppetmaster ~]# ntptime
ntp_gettime() returns code 0 (OK)
  time df5625da.cca5ac80  Wed, Sep 26 2018 21:05:54.799, (.799403733),
  maximum error 1255605 us, estimated error 21119 us, TAI offset 0
ntp_adjtime() returns code 0 (OK)
  modes 0x0 (),
  offset -49310.410 us, frequency -0.399 ppm, interval 1 s,
  maximum error 1255605 us, estimated error 21119 us,
  status 0x2001 (PLL,NANO),
  time constant 6, precision 0.001 us, tolerance 500 ppm,
[root@puppetmaster ~]#
[root@puppetmaster ~]# date
Wed Sep 26 21:05:58 IST 2018
[root@puppetmaster ~]#  export PS1="\e[1;31m[\u@\h \W]\$ \e[m "
[root@puppetmaster ~]$
[root@puppetmaster ~]$
[root@puppetmaster ~]$   systemctl status puppetserver
● puppetserver.service - puppetserver Service
   Loaded: loaded (/usr/lib/systemd/system/puppetserver.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
[root@puppetmaster ~]$  systemctl start puppetserver
[root@puppetmaster ~]$  systemctl start puppetserver^C
[root@puppetmaster ~]$  systemctl enable puppetserver
Created symlink from /etc/systemd/system/multi-user.target.wants/puppetserver.service to /usr/lib/systemd/system/puppetserver.service.
[root@puppetmaster ~]$
[root@puppetmaster ~]$

================= setting up puppet client ==============

[root@webdev1 network-scripts]#  yum -y install ntpdate
Loaded plugins: fastestmirror, langpacks
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
base                                                                                                             | 3.6 kB  00:00:00
epel/x86_64/metalink                                                                                             | 7.9 kB  00:00:00
epel                                                                                                             | 3.2 kB  00:00:00
extras                                                                                                           | 3.4 kB  00:00:00
updates                                                                                                          | 3.4 kB  00:00:00
(1/5): epel/x86_64/group_gz                                                                                      |  88 kB  00:00:00
(2/5): extras/7/x86_64/primary_db                                                                                | 187 kB  00:00:00
(3/5): updates/7/x86_64/primary_db                                                                               | 5.2 MB  00:00:01
(4/5): epel/x86_64/updateinfo                                                                                    | 943 kB  00:00:02
(5/5): epel/x86_64/primary                                                                                       | 3.6 MB  00:00:07
Loading mirror speeds from cached hostfile
 * base: centos.mirror.net.in
 * epel: mirror1.ku.ac.th
 * extras: centos.mirror.net.in
 * updates: centos.mirror.net.in
epel                                                                                                                        12687/12687
Resolving Dependencies
--> Running transaction check
---> Package ntpdate.x86_64 0:4.2.6p5-25.el7.centos.1 will be updated
--> Processing Dependency: ntpdate = 4.2.6p5-25.el7.centos.1 for package: ntp-4.2.6p5-25.el7.centos.1.x86_64
---> Package ntpdate.x86_64 0:4.2.6p5-28.el7.centos will be an update
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.2)(64bit) for package: ntpdate-4.2.6p5-28.el7.centos.x86_64
--> Running transaction check
---> Package ntp.x86_64 0:4.2.6p5-25.el7.centos.1 will be updated
---> Package ntp.x86_64 0:4.2.6p5-28.el7.centos will be an update
---> Package openssl-libs.x86_64 1:1.0.1e-60.el7_3.1 will be updated
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.1e-60.el7_3.1 for package: 1:openssl-1.0.1e-60.el7_3.1.x86_64
---> Package openssl-libs.x86_64 1:1.0.2k-12.el7 will be an update
--> Running transaction check
---> Package openssl.x86_64 1:1.0.1e-60.el7_3.1 will be updated
---> Package openssl.x86_64 1:1.0.2k-12.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================
 Package                          Arch                       Version                                     Repository                Size
========================================================================================================================================
Updating:
 ntpdate                          x86_64                     4.2.6p5-28.el7.centos                       base                      86 k
Updating for dependencies:
 ntp                              x86_64                     4.2.6p5-28.el7.centos                       base                     549 k
 openssl                          x86_64                     1:1.0.2k-12.el7                             base                     492 k
 openssl-libs                     x86_64                     1:1.0.2k-12.el7                             base                     1.2 M

Transaction Summary
========================================================================================================================================
Upgrade  1 Package (+3 Dependent packages)

Total size: 2.3 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : 1:openssl-libs-1.0.2k-12.el7.x86_64                                                                                  1/8
  Updating   : ntpdate-4.2.6p5-28.el7.centos.x86_64                                                                                 2/8
  Updating   : ntp-4.2.6p5-28.el7.centos.x86_64                                                                                     3/8
  Updating   : 1:openssl-1.0.2k-12.el7.x86_64                                                                                       4/8
  Cleanup    : ntp-4.2.6p5-25.el7.centos.1.x86_64                                                                                   5/8
  Cleanup    : ntpdate-4.2.6p5-25.el7.centos.1.x86_64                                                                               6/8
  Cleanup    : 1:openssl-1.0.1e-60.el7_3.1.x86_64                                                                                   7/8
  Cleanup    : 1:openssl-libs-1.0.1e-60.el7_3.1.x86_64                                                                              8/8
  Verifying  : ntp-4.2.6p5-28.el7.centos.x86_64                                                                                     1/8
  Verifying  : ntpdate-4.2.6p5-28.el7.centos.x86_64                                                                                 2/8
  Verifying  : 1:openssl-1.0.2k-12.el7.x86_64                                                                                       3/8
  Verifying  : 1:openssl-libs-1.0.2k-12.el7.x86_64                                                                                  4/8
  Verifying  : 1:openssl-1.0.1e-60.el7_3.1.x86_64                                                                                   5/8
  Verifying  : ntpdate-4.2.6p5-25.el7.centos.1.x86_64                                                                               6/8
  Verifying  : ntp-4.2.6p5-25.el7.centos.1.x86_64                                                                                   7/8
  Verifying  : 1:openssl-libs-1.0.1e-60.el7_3.1.x86_64                                                                              8/8

Updated:
  ntpdate.x86_64 0:4.2.6p5-28.el7.centos

Dependency Updated:
  ntp.x86_64 0:4.2.6p5-28.el7.centos            openssl.x86_64 1:1.0.2k-12.el7            openssl-libs.x86_64 1:1.0.2k-12.el7

Complete!
[root@webdev1 network-scripts]# ntpdate 0.centos.pool.ntp.org
26 Sep 11:45:39 ntpdate[6549]: adjust time server 167.99.64.239 offset 0.011970 sec
[root@webdev1 network-scripts]# timedatectl set-timezone Asia/Kolkata
[root@webdev1 network-scripts]# date
Wed Sep 26 21:16:01 IST 2018
[root@webdev1 network-scripts]# systemctl start ntpd
[root@webdev1 network-scripts]#  yum -y install ntpdate^C
[root@webdev1 network-scripts]#  rpm -Uvh https://yum.puppetlabs.com/puppet5/puppet5-release-el-7.noarch.rpm
Retrieving https://yum.puppetlabs.com/puppet5/puppet5-release-el-7.noarch.rpm
warning: /var/tmp/rpm-tmp.kWtwPV: Header V4 RSA/SHA256 Signature, key ID ef8d349f: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:puppet5-release-5.0.0-4.el7      ################################# [100%]
[root@webdev1 network-scripts]# yum install puppet
Loaded plugins: fastestmirror, langpacks
puppet5                                                                                                          | 2.5 kB  00:00:00
puppet5/x86_64/primary_db                                                                                        | 128 kB  00:00:00
Loading mirror speeds from cached hostfile
 * base: centos.mirror.net.in
 * epel: mirrors.nipa.cloud
 * extras: centos.mirror.net.in
 * updates: centos.mirror.net.in
Package puppet is obsoleted by puppet-agent, trying to install puppet-agent-5.5.6-1.el7.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package puppet-agent.x86_64 0:5.5.6-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================
 Package                            Arch                         Version                            Repository                     Size
========================================================================================================================================
Installing:
 puppet-agent                       x86_64                       5.5.6-1.el7                        puppet5                        20 M

Transaction Summary
========================================================================================================================================
Install  1 Package

Total download size: 20 M
Installed size: 20 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/puppet5/packages/puppet-agent-5.5.6-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID ef8d349f: NOKEY
Public key for puppet-agent-5.5.6-1.el7.x86_64.rpm is not installed
puppet-agent-5.5.6-1.el7.x86_64.rpm                                                                              |  20 MB  00:00:14
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppet5-release
Importing GPG key 0xEF8D349F:
 Userid     : "Puppet, Inc. Release Key (Puppet, Inc. Release Key) <release@puppet.com>"
 Fingerprint: 6f6b 1550 9cf8 e59e 6e46 9f32 7f43 8280 ef8d 349f
 Package    : puppet5-release-5.0.0-4.el7.noarch (installed)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-puppet5-release
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows:
ipa-client-4.4.0-14.el7.centos.6.x86_64 has installed conflicts freeipa-client: ipa-client-4.4.0-14.el7.centos.6.x86_64
ipa-client-common-4.4.0-14.el7.centos.6.noarch has installed conflicts freeipa-client-common: ipa-client-common-4.4.0-14.el7.centos.6.noarch
ipa-common-4.4.0-14.el7.centos.6.noarch has installed conflicts freeipa-common: ipa-common-4.4.0-14.el7.centos.6.noarch
  Installing : puppet-agent-5.5.6-1.el7.x86_64                                                                                      1/1
  Verifying  : puppet-agent-5.5.6-1.el7.x86_64                                                                                      1/1

Installed:
  puppet-agent.x86_64 0:5.5.6-1.el7

Complete!
[root@webdev1 network-scripts]#
 

No comments:

Post a Comment

kubernetes Pod Scheduling

 ===================   Deployment ================= 1.) Deployment without any nodeName or nodeSelector, pod will spread among all of the av...