ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Oracle Linux 配置Puppet客户端

Oracle Linux 配置Puppet客户端

原创 Linux操作系统 作者:yuio654 时间:2013-05-13 12:45:40 0 删除 编辑




系统是Oracle Linux 6.3,闲话不说,看日志

[root@node1 ~]# more /etc/redhat-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)
[root@node1 ~]#
[root@node1 ~]# uname -a
Linux node1 2.6.39-200.24.1.el6uek.x86_64 #1 SMP Sat Jun 23 02:39:07 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@node1 ~]#
[root@node1 ~]# yum search puppet
Loaded plugins: security
============================= N/S Matched: puppet ==============================
emacs-puppet.noarch : Emacs mode for Puppet
puppet-server.noarch : Server for the puppet system management tool
rubygem-puppet-lint.noarch : Check Puppet manifests against the Puppet Labs
                           : style. guide
rubygem-puppet-lint-doc.noarch : Documentation for rubygem-puppet-lint
vim-puppet.noarch : Vim mode for Puppet
puppet.noarch : A network tool for managing many disparate systems

  Name and summary matches only, use "search all" for everything.
[root@node1 ~]#
[root@node1 ~]#
[root@node1 ~]#
[root@node1 ~]#
[root@node1 ~]#
[root@node1 ~]#
[root@node1 ~]#
[root@node1 ~]# yum install puppet
Loaded plugins: security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package puppet.noarch 0:2.7.20-1.el6.rf will be installed
--> Processing Dependency: ruby >= 1.8.1 for package: puppet-2.7.20-1.el6.rf.noarch
--> Processing Dependency: ruby(abi) >= 1.8 for package: puppet-2.7.20-1.el6.rf.noarch
--> Processing Dependency: facter >= 1.5 for package: puppet-2.7.20-1.el6.rf.noarch
--> Processing Dependency: ruby-shadow for package: puppet-2.7.20-1.el6.rf.noarch
--> Processing Dependency: ruby-augeas for package: puppet-2.7.20-1.el6.rf.noarch
--> Processing Dependency: /usr/bin/ruby for package: puppet-2.7.20-1.el6.rf.noarch
--> Processing Dependency: ruby(selinux) for package: puppet-2.7.20-1.el6.rf.noarch
--> Running transaction check
---> Package facter.x86_64 0:1.6.18-3.el6 will be installed
---> Package libselinux-ruby.x86_64 0:2.0.94-5.3.el6_4.1 will be installed
--> Processing Dependency: libselinux = 2.0.94-5.3.el6_4.1 for package: libselinux-ruby-2.0.94-5.3.el6_4.1.x86_64
---> Package ruby.x86_64 0:1.8.7.352-10.el6_4 will be installed
---> Package ruby-augeas.x86_64 0:0.4.1-1.el6 will be installed
--> Processing Dependency: augeas-libs >= 0.8.0 for package: ruby-augeas-0.4.1-1.el6.x86_64
--> Processing Dependency: libaugeas.so.0(AUGEAS_0.8.0)(64bit) for package: ruby-augeas-0.4.1-1.el6.x86_64
--> Processing Dependency: libaugeas.so.0(AUGEAS_0.12.0)(64bit) for package: ruby-augeas-0.4.1-1.el6.x86_64
--> Processing Dependency: libaugeas.so.0(AUGEAS_0.11.0)(64bit) for package: ruby-augeas-0.4.1-1.el6.x86_64
--> Processing Dependency: libaugeas.so.0(AUGEAS_0.10.0)(64bit) for package: ruby-augeas-0.4.1-1.el6.x86_64
--> Processing Dependency: libaugeas.so.0(AUGEAS_0.1.0)(64bit) for package: ruby-augeas-0.4.1-1.el6.x86_64
--> Processing Dependency: libaugeas.so.0()(64bit) for package: ruby-augeas-0.4.1-1.el6.x86_64
---> Package ruby-libs.x86_64 0:1.8.7.352-10.el6_4 will be installed
--> Processing Dependency: libreadline.so.5()(64bit) for package: ruby-libs-1.8.7.352-10.el6_4.x86_64
---> Package ruby-shadow.x86_64 0:1.4.1-13.el6 will be installed
--> Running transaction check
---> Package augeas-libs.x86_64 0:0.9.0-4.el6 will be installed
---> Package compat-readline5.x86_64 0:5.2-17.1.el6 will be installed
---> Package libselinux.x86_64 0:2.0.94-5.3.el6 will be updated
--> Processing Dependency: libselinux = 2.0.94-5.3.el6 for package: libselinux-utils-2.0.94-5.3.el6.x86_64
--> Processing Dependency: libselinux = 2.0.94-5.3.el6 for package: libselinux-python-2.0.94-5.3.el6.x86_64
---> Package libselinux.x86_64 0:2.0.94-5.3.el6_4.1 will be an update
--> Running transaction check
---> Package libselinux-python.x86_64 0:2.0.94-5.3.el6 will be updated
---> Package libselinux-python.x86_64 0:2.0.94-5.3.el6_4.1 will be an update
---> Package libselinux-utils.x86_64 0:2.0.94-5.3.el6 will be updated
---> Package libselinux-utils.x86_64 0:2.0.94-5.3.el6_4.1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch       Version                  Repository      Size
================================================================================
Installing:
 puppet                noarch     2.7.20-1.el6.rf          rpmforge       1.1 M
Installing for dependencies:
 augeas-libs           x86_64     0.9.0-4.el6              ol6_latest     317 k
 compat-readline5      x86_64     5.2-17.1.el6             ol6_latest     129 k
 facter                x86_64     1.6.18-3.el6             epel            62 k
 libselinux-ruby       x86_64     2.0.94-5.3.el6_4.1       ol6_latest      98 k
 ruby                  x86_64     1.8.7.352-10.el6_4       ol6_latest     533 k
 ruby-augeas           x86_64     0.4.1-1.el6              epel            21 k
 ruby-libs             x86_64     1.8.7.352-10.el6_4       ol6_latest     1.6 M
 ruby-shadow           x86_64     1.4.1-13.el6             epel            11 k
Updating for dependencies:
 libselinux            x86_64     2.0.94-5.3.el6_4.1       ol6_latest     107 k
 libselinux-python     x86_64     2.0.94-5.3.el6_4.1       ol6_latest     201 k
 libselinux-utils      x86_64     2.0.94-5.3.el6_4.1       ol6_latest      80 k

Transaction Summary
================================================================================
Install       9 Package(s)
Upgrade       3 Package(s)

Total download size: 4.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/12): augeas-libs-0.9.0-4.el6.x86_64.rpm               | 317 kB     00:06
(2/12): compat-readline5-5.2-17.1.el6.x86_64.rpm         | 129 kB     00:05
(3/12): facter-1.6.18-3.el6.x86_64.rpm                   |  62 kB     00:00
(4/12): libselinux-2.0.94-5.3.el6_4.1.x86_64.rpm         | 107 kB     00:02
(5/12): libselinux-python-2.0.94-5.3.el6_4.1.x86_64.rpm  | 201 kB     00:14
(6/12): libselinux-ruby-2.0.94-5.3.el6_4.1.x86_64.rpm    |  98 kB     00:02
(7/12): libselinux-utils-2.0.94-5.3.el6_4.1.x86_64.rpm   |  80 kB     00:04
(8/12): puppet-2.7.20-1.el6.rf.noarch.rpm                | 1.1 MB     00:08
(9/12): ruby-1.8.7.352-10.el6_4.x86_64.rpm               | 533 kB     00:24
(10/12): ruby-augeas-0.4.1-1.el6.x86_64.rpm              |  21 kB     00:00
(11/12): ruby-libs-1.8.7.352-10.el6_4.x86_64.rpm         | 1.6 MB     01:44
(12/12): ruby-shadow-1.4.1-13.el6.x86_64.rpm             |  11 kB     00:00
--------------------------------------------------------------------------------
Total                                            23 kB/s | 4.2 MB     03:06
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : libselinux-2.0.94-5.3.el6_4.1.x86_64                        1/15
  Installing : augeas-libs-0.9.0-4.el6.x86_64                              2/15
  Installing : libselinux-ruby-2.0.94-5.3.el6_4.1.x86_64                   3/15
  Updating   : libselinux-utils-2.0.94-5.3.el6_4.1.x86_64                  4/15
  Installing : compat-readline5-5.2-17.1.el6.x86_64                        5/15
  Installing : ruby-libs-1.8.7.352-10.el6_4.x86_64                         6/15
  Installing : ruby-1.8.7.352-10.el6_4.x86_64                              7/15
  Installing : facter-1.6.18-3.el6.x86_64                                  8/15
  Installing : ruby-augeas-0.4.1-1.el6.x86_64                              9/15
  Installing : ruby-shadow-1.4.1-13.el6.x86_64                            10/15
  Installing : puppet-2.7.20-1.el6.rf.noarch                              11/15
  Updating   : libselinux-python-2.0.94-5.3.el6_4.1.x86_64                12/15
  Cleanup    : libselinux-utils-2.0.94-5.3.el6.x86_64                     13/15
  Cleanup    : libselinux-python-2.0.94-5.3.el6.x86_64                    14/15
  Cleanup    : libselinux-2.0.94-5.3.el6.x86_64                           15/15
  Verifying  : libselinux-python-2.0.94-5.3.el6_4.1.x86_64                 1/15
  Verifying  : augeas-libs-0.9.0-4.el6.x86_64                              2/15
  Verifying  : libselinux-ruby-2.0.94-5.3.el6_4.1.x86_64                   3/15
  Verifying  : ruby-augeas-0.4.1-1.el6.x86_64                              4/15
  Verifying  : ruby-1.8.7.352-10.el6_4.x86_64                              5/15
  Verifying  : facter-1.6.18-3.el6.x86_64                                  6/15
  Verifying  : compat-readline5-5.2-17.1.el6.x86_64                        7/15
  Verifying  : libselinux-2.0.94-5.3.el6_4.1.x86_64                        8/15
  Verifying  : puppet-2.7.20-1.el6.rf.noarch                               9/15
  Verifying  : libselinux-utils-2.0.94-5.3.el6_4.1.x86_64                 10/15
  Verifying  : ruby-shadow-1.4.1-13.el6.x86_64                            11/15
  Verifying  : ruby-libs-1.8.7.352-10.el6_4.x86_64                        12/15
  Verifying  : libselinux-python-2.0.94-5.3.el6.x86_64                    13/15
  Verifying  : libselinux-utils-2.0.94-5.3.el6.x86_64                     14/15
  Verifying  : libselinux-2.0.94-5.3.el6.x86_64                           15/15

Installed:
  puppet.noarch 0:2.7.20-1.el6.rf

Dependency Installed:
  augeas-libs.x86_64 0:0.9.0-4.el6
  compat-readline5.x86_64 0:5.2-17.1.el6
  facter.x86_64 0:1.6.18-3.el6
  libselinux-ruby.x86_64 0:2.0.94-5.3.el6_4.1
  ruby.x86_64 0:1.8.7.352-10.el6_4
  ruby-augeas.x86_64 0:0.4.1-1.el6
  ruby-libs.x86_64 0:1.8.7.352-10.el6_4
  ruby-shadow.x86_64 0:1.4.1-13.el6

Dependency Updated:
  libselinux.x86_64 0:2.0.94-5.3.el6_4.1
  libselinux-python.x86_64 0:2.0.94-5.3.el6_4.1
  libselinux-utils.x86_64 0:2.0.94-5.3.el6_4.1

Complete!
[root@node1 ~]#



[root@node1 ~]# rpm -qa|grep puppet
puppet-2.7.20-1.el6.rf.noarch
[root@node1 ~]#
[root@node1 ~]# rpm -ql puppet-2.7.20-1.el6.rf.noarch|grep init
/etc/rc.d/init.d/puppet
/usr/lib/ruby/site_ruby/1.8/puppet/module_tool/skeleton/templates/generator/manifests/init.pp.erb
/usr/lib/ruby/site_ruby/1.8/puppet/module_tool/skeleton/templates/generator/tests/init.pp.erb
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/definition.rb
/usr/lib/ruby/site_ruby/1.8/puppet/provider/service/init.rb
/usr/share/doc/puppet-2.7.20/examples/etc/init.d
/usr/share/doc/puppet-2.7.20/examples/etc/init.d/sleeper
/usr/share/doc/puppet-2.7.20/examples/modules/sample-module/manifests/init.pp
/usr/share/puppet/ext/debian/puppet.init
/usr/share/puppet/ext/debian/puppetmaster-common.puppetqd.init
/usr/share/puppet/ext/debian/puppetmaster.init
[root@node1 ~]#

[root@node1 ~]# rpm -ql puppet-2.7.20-1.el6.rf.noarch|grep etc
/etc/logrotate.d/puppet
/etc/puppet
/etc/puppet/auth.conf
/etc/puppet/modules
/etc/puppet/puppet.conf
/etc/puppet/puppetd.conf
/etc/rc.d/init.d/puppet
/etc/sysconfig/puppet
/usr/share/doc/puppet-2.7.20/examples/etc
/usr/share/doc/puppet-2.7.20/examples/etc/init.d
/usr/share/doc/puppet-2.7.20/examples/etc/init.d/sleeper
/usr/share/doc/puppet-2.7.20/examples/etc/puppet
/usr/share/doc/puppet-2.7.20/examples/etc/puppet/fileserver.conf
/usr/share/doc/puppet-2.7.20/examples/etc/puppet/namespaceauth.conf
/usr/share/doc/puppet-2.7.20/examples/etc/puppet/puppet-queue.conf
/usr/share/doc/puppet-2.7.20/examples/etc/puppet/puppet.conf
/usr/share/doc/puppet-2.7.20/examples/etc/puppet/tagmail.conf
[root@node1 ~]#


安装好puppet以后,第一次运行不用服务模式,试试命令行,看看到底发生了神马事情

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/294140/viewspace-760931/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2008-10-27

  • 博文量
    3
  • 访问量
    6673