Installing puppet agent on Oracle VM Server 3.3.1

Warning

This should only be done if you know what you’re doing, and should not be done without testing and some precautions. This is running well in my production environment, but I do not guarantee it will work in yours.

Installing Puppet on Oracle VM Server 3.3.1

First log in to the Oracle VM Manager console at ‘https://:7002/ovm/console’.

2014 12 16 21 35 39

Then go to ‘Tools and Resources’ and click on ‘Server Update Groups’. Then click on ‘GlobalX86ServerUpdateConfiguration’. If you’ve set up a update repository perviously like I have you’ll have it listed already there.

2014 12 16 21 36 32

Then click the green plus sign (Add), and enter the following values: Name: OL6_latest Repository Name: OL6_latest URL: http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/ Package Signature Type: GPG Package Signature Key: http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6

2014 12 16 21 41 45

Then click the green plus sign (Add), and enter the following values: Name: puppet Repository Name: puppet URL: https://yum.puppetlabs.com/el/6/products/x86_64/ Package Signature Type: GPG Package Signature Key: https://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs

2014 12 16 21 43 30

Then click the green plus sign (Add), and enter the following values: Name: puppet_dep Repository Name: puppet_dep URL: https://yum.puppetlabs.com/el/6/dependencies/x86_64/ Package Signature Type: GPG Package Signature Key: https://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs

2014 12 16 21 51 13

Then ssh into the Oracle VM server.

$ ssh 10.211.55.10 -l root
Saving password to keychain failed
root@10.211.55.10's password:
Last login: Wed Dec 10 22:40:04 2014
Warning: making manual modifications in the management domain
might cause inconsistencies between Oracle VM Manager and the server.
[root@ovs01 ~]#

The install puppet with yum.

[root@ovs01 ~]# yum install --enablerepo=OL6_latest,puppet,puppet_dep puppet
OL6_latest | 1.4 kB 00:00
OVM33x | 1.2 kB 00:00
puppet | 2.5 kB 00:00
puppet_dep | 2.5 kB 00:00
puppet_dep/primary_db | 27 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package puppet.noarch 0:3.7.3-1.el6 will be installed
--> Processing Dependency: ruby >= 1.8 for package: puppet-3.7.3-1.el6.noarch
--> Processing Dependency: hiera >= 1.0.0 for package: puppet-3.7.3-1.el6.noarch
--> Processing Dependency: ruby >= 1.8.7 for package: puppet-3.7.3-1.el6.noarch
--> Processing Dependency: facter >= 1:1.7.0 for package: puppet-3.7.3-1.el6.noarch
--> Processing Dependency: ruby-augeas for package: puppet-3.7.3-1.el6.noarch
--> Processing Dependency: ruby-shadow for package: puppet-3.7.3-1.el6.noarch
--> Processing Dependency: rubygem-json for package: puppet-3.7.3-1.el6.noarch
--> Processing Dependency: /usr/bin/ruby for package: puppet-3.7.3-1.el6.noarch
--> Processing Dependency: ruby(selinux) for package: puppet-3.7.3-1.el6.noarch
--> Running transaction check
---> Package facter.x86_64 1:2.3.0-1.el6 will be installed
--> Processing Dependency: virt-what for package: 1:facter-2.3.0-1.el6.x86_64
---> Package hiera.noarch 0:1.3.4-1.el6 will be installed
---> Package libselinux-ruby.x86_64 0:2.0.94-5.8.el6 will be installed
--> Processing Dependency: libselinux = 2.0.94-5.8.el6 for package: libselinux-ruby-2.0.94-5.8.el6.x86_64
---> Package ruby.x86_64 0:1.8.7.374-3.el6_6 will be installed
--> Processing Dependency: ruby-libs = 1.8.7.374-3.el6_6 for package: ruby-1.8.7.374-3.el6_6.x86_64
--> Processing Dependency: libruby.so.1.8()(64bit) for package: ruby-1.8.7.374-3.el6_6.x86_64
---> Package ruby-augeas.x86_64 0:0.4.1-3.el6 will be installed
--> Processing Dependency: augeas-libs >= 0.8.0 for package: ruby-augeas-0.4.1-3.el6.x86_64
--> Processing Dependency: libaugeas.so.0(AUGEAS_0.10.0)(64bit) for package: ruby-augeas-0.4.1-3.el6.x86_64
--> Processing Dependency: libaugeas.so.0(AUGEAS_0.1.0)(64bit) for package: ruby-augeas-0.4.1-3.el6.x86_64
--> Processing Dependency: libaugeas.so.0(AUGEAS_0.11.0)(64bit) for package: ruby-augeas-0.4.1-3.el6.x86_64
--> Processing Dependency: libaugeas.so.0(AUGEAS_0.8.0)(64bit) for package: ruby-augeas-0.4.1-3.el6.x86_64
--> Processing Dependency: libaugeas.so.0(AUGEAS_0.12.0)(64bit) for package: ruby-augeas-0.4.1-3.el6.x86_64
--> Processing Dependency: libaugeas.so.0()(64bit) for package: ruby-augeas-0.4.1-3.el6.x86_64
---> Package ruby-shadow.x86_64 1:2.2.0-2.el6 will be installed
---> Package rubygem-json.x86_64 0:1.5.5-3.el6 will be installed
--> Processing Dependency: rubygems >= 1.3.7 for package: rubygem-json-1.5.5-3.el6.x86_64
--> Running transaction check
---> Package augeas-libs.x86_64 0:1.0.0-7.el6 will be installed
---> Package libselinux.x86_64 0:2.0.94-5.3.el6_4.1 will be updated
--> Processing Dependency: libselinux = 2.0.94-5.3.el6_4.1 for package: libselinux-utils-2.0.94-5.3.el6_4.1.x86_64
---> Package libselinux.x86_64 0:2.0.94-5.8.el6 will be an update
---> Package ruby-libs.x86_64 0:1.8.7.374-3.el6_6 will be installed
--> Processing Dependency: libreadline.so.5()(64bit) for package: ruby-libs-1.8.7.374-3.el6_6.x86_64
---> Package rubygems.noarch 0:1.3.7-5.el6 will be installed
--> Processing Dependency: ruby-rdoc for package: rubygems-1.3.7-5.el6.noarch
---> Package virt-what.x86_64 0:1.11-1.2.el6 will be installed
--> Running transaction check
---> Package compat-readline5.x86_64 0:5.2-17.1.el6 will be installed
---> Package libselinux-utils.x86_64 0:2.0.94-5.3.el6_4.1 will be updated
---> Package libselinux-utils.x86_64 0:2.0.94-5.8.el6 will be an update
---> Package ruby-rdoc.x86_64 0:1.8.7.374-3.el6_6 will be installed
--> Processing Dependency: ruby-irb = 1.8.7.374-3.el6_6 for package: ruby-rdoc-1.8.7.374-3.el6_6.x86_64
--> Running transaction check
---> Package ruby-irb.x86_64 0:1.8.7.374-3.el6_6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================
Package Arch Version Repository Size
=================================================================================================================================
Installing:
puppet noarch 3.7.3-1.el6 puppet 1.6 M
Installing for dependencies:
augeas-libs x86_64 1.0.0-7.el6 OL6_latest 313 k
compat-readline5 x86_64 5.2-17.1.el6 OL6_latest 129 k
facter x86_64 1:2.3.0-1.el6 puppet 97 k
hiera noarch 1.3.4-1.el6 puppet 23 k
libselinux-ruby x86_64 2.0.94-5.8.el6 OL6_latest 99 k
ruby x86_64 1.8.7.374-3.el6_6 OL6_latest 538 k
ruby-augeas x86_64 0.4.1-3.el6 puppet_dep 21 k
ruby-irb x86_64 1.8.7.374-3.el6_6 OL6_latest 317 k
ruby-libs x86_64 1.8.7.374-3.el6_6 OL6_latest 1.7 M
ruby-rdoc x86_64 1.8.7.374-3.el6_6 OL6_latest 380 k
ruby-shadow x86_64 1:2.2.0-2.el6 puppet_dep 13 k
rubygem-json x86_64 1.5.5-3.el6 puppet_dep 763 k
rubygems noarch 1.3.7-5.el6 OL6_latest 206 k
virt-what x86_64 1.11-1.2.el6 OL6_latest 23 k
Updating for dependencies:
libselinux x86_64 2.0.94-5.8.el6 OL6_latest 108 k
libselinux-utils x86_64 2.0.94-5.8.el6 OL6_latest 81 k

Transaction Summary
=================================================================================================================================
Install 15 Package(s)
Upgrade 2 Package(s)

Total download size: 6.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/17): augeas-libs-1.0.0-7.el6.x86_64.rpm | 313 kB 00:03
(2/17): compat-readline5-5.2-17.1.el6.x86_64.rpm | 129 kB 00:02
(3/17): facter-2.3.0-1.el6.x86_64.rpm | 97 kB 00:00
(4/17): hiera-1.3.4-1.el6.noarch.rpm | 23 kB 00:00
(5/17): libselinux-2.0.94-5.8.el6.x86_64.rpm | 108 kB 00:01
(6/17): libselinux-ruby-2.0.94-5.8.el6.x86_64.rpm | 99 kB 00:01
(7/17): libselinux-utils-2.0.94-5.8.el6.x86_64.rpm | 81 kB 00:00
(8/17): puppet-3.7.3-1.el6.noarch.rpm | 1.6 MB 00:05
(9/17): ruby-1.8.7.374-3.el6_6.x86_64.rpm | 538 kB 00:12
(10/17): ruby-augeas-0.4.1-3.el6.x86_64.rpm | 21 kB 00:00
(11/17): ruby-irb-1.8.7.374-3.el6_6.x86_64.rpm | 317 kB 00:05
(12/17): ruby-libs-1.8.7.374-3.el6_6.x86_64.rpm | 1.7 MB 00:32
(13/17): ruby-rdoc-1.8.7.374-3.el6_6.x86_64.rpm | 380 kB 00:05
(14/17): ruby-shadow-2.2.0-2.el6.x86_64.rpm | 13 kB 00:00
(15/17): rubygem-json-1.5.5-3.el6.x86_64.rpm | 763 kB 00:01
(16/17): rubygems-1.3.7-5.el6.noarch.rpm | 206 kB 00:02
(17/17): virt-what-1.11-1.2.el6.x86_64.rpm | 23 kB 00:00
---------------------------------------------------------------------------------------------------------------------------------
Total 74 kB/s | 6.2 MB 01:26
warning: rpmts_HdrFromFdno: Header V4 RSA/SHA512 Signature, key ID 4bd6ec30: NOKEY
Retrieving key from https://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
Importing GPG key 0x4BD6EC30:
Userid: "Puppet Labs Release Key (Puppet Labs Release Key) <info@puppetlabs.com>"
From : https://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : libselinux-2.0.94-5.8.el6.x86_64 1/19
Updating : libselinux-utils-2.0.94-5.8.el6.x86_64 2/19
Installing : augeas-libs-1.0.0-7.el6.x86_64 3/19
Installing : libselinux-ruby-2.0.94-5.8.el6.x86_64 4/19
Installing : virt-what-1.11-1.2.el6.x86_64 5/19
Installing : compat-readline5-5.2-17.1.el6.x86_64 6/19
Installing : ruby-libs-1.8.7.374-3.el6_6.x86_64 7/19
Installing : ruby-1.8.7.374-3.el6_6.x86_64 8/19
Installing : 1:facter-2.3.0-1.el6.x86_64 9/19
Installing : ruby-irb-1.8.7.374-3.el6_6.x86_64 10/19
Installing : ruby-rdoc-1.8.7.374-3.el6_6.x86_64 11/19
Installing : rubygems-1.3.7-5.el6.noarch 12/19
Installing : rubygem-json-1.5.5-3.el6.x86_64 13/19
Installing : hiera-1.3.4-1.el6.noarch 14/19
Installing : 1:ruby-shadow-2.2.0-2.el6.x86_64 15/19
Installing : ruby-augeas-0.4.1-3.el6.x86_64 16/19
Installing : puppet-3.7.3-1.el6.noarch 17/19
Cleanup : libselinux-utils-2.0.94-5.3.el6_4.1.x86_64 18/19
Cleanup : libselinux-2.0.94-5.3.el6_4.1.x86_64 19/19
Verifying : 1:facter-2.3.0-1.el6.x86_64 1/19
Verifying : rubygems-1.3.7-5.el6.noarch 2/19
Verifying : libselinux-2.0.94-5.8.el6.x86_64 3/19
Verifying : ruby-1.8.7.374-3.el6_6.x86_64 4/19
Verifying : ruby-irb-1.8.7.374-3.el6_6.x86_64 5/19
Verifying : compat-readline5-5.2-17.1.el6.x86_64 6/19
Verifying : libselinux-utils-2.0.94-5.8.el6.x86_64 7/19
Verifying : ruby-libs-1.8.7.374-3.el6_6.x86_64 8/19
Verifying : rubygem-json-1.5.5-3.el6.x86_64 9/19
Verifying : hiera-1.3.4-1.el6.noarch 10/19
Verifying : augeas-libs-1.0.0-7.el6.x86_64 11/19
Verifying : puppet-3.7.3-1.el6.noarch 12/19
Verifying : virt-what-1.11-1.2.el6.x86_64 13/19
Verifying : libselinux-ruby-2.0.94-5.8.el6.x86_64 14/19
Verifying : ruby-rdoc-1.8.7.374-3.el6_6.x86_64 15/19
Verifying : ruby-augeas-0.4.1-3.el6.x86_64 16/19
Verifying : 1:ruby-shadow-2.2.0-2.el6.x86_64 17/19
Verifying : libselinux-2.0.94-5.3.el6_4.1.x86_64 18/19
Verifying : libselinux-utils-2.0.94-5.3.el6_4.1.x86_64 19/19

Installed:
puppet.noarch 0:3.7.3-1.el6

Dependency Installed:
augeas-libs.x86_64 0:1.0.0-7.el6 compat-readline5.x86_64 0:5.2-17.1.el6 facter.x86_64 1:2.3.0-1.el6
hiera.noarch 0:1.3.4-1.el6 libselinux-ruby.x86_64 0:2.0.94-5.8.el6 ruby.x86_64 0:1.8.7.374-3.el6_6
ruby-augeas.x86_64 0:0.4.1-3.el6 ruby-irb.x86_64 0:1.8.7.374-3.el6_6 ruby-libs.x86_64 0:1.8.7.374-3.el6_6
ruby-rdoc.x86_64 0:1.8.7.374-3.el6_6 ruby-shadow.x86_64 1:2.2.0-2.el6 rubygem-json.x86_64 0:1.5.5-3.el6
rubygems.noarch 0:1.3.7-5.el6 virt-what.x86_64 0:1.11-1.2.el6

Dependency Updated:
libselinux.x86_64 0:2.0.94-5.8.el6 libselinux-utils.x86_64 0:2.0.94-5.8.el6

Complete!
[root@ovs01 ~]#

Now puppet agent is install and you can configure it as needed.


comments powered by Disqus