Hi,

I wanted to install mysql-5.1.66 and make sure mysql-5.5.34 removed so I 
make a init.pp file and put in it:
class mysql {
    package { 'mysql':
        ensure => "5.1.66-2.el6_3", 
        require => [Package['mysql-libs'], 
                    Package['compat-mysql'], 
                    Package['mysql-5.5.34']],
    }

    package { 'mysql-libs':
    provider => 'yum',
    ensure => 'purged',
    }

    package { 'compat-mysql':
    provider => 'yum',
    ensure => 'absent',
    }

    package { 'mysql-5.5.34':
    provider => 'yum',
    ensure => 'absent',
    }
} 

When I test it before, two weeks ago, it work okay. It remove mysql-5.5.34 
and install mysql-5.1.66.
Today I saw the puppet agent don't have mysql install at all.
I tried to install it from the Unix command line  and got:

*No package mysql-server-5.1.66-2.el6_3 available.Error: Nothing to do*

I believe that this version of mysql removed from the repository because 
it's old, but I don't want the old version to delete from my puppet agent.
I want my puppet agent to have mysql-5.1.66 even that it not exist in the 
repository.
Is it because the puppet did not find mysql in the repository so it delete 
it from my agent? or I'm doing something wrong?

Thanks.

 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d2b2b204-506f-4467-8727-f453e8632229%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to