Re: [Puppet Users] What the correct way to downgrade version with puppet? (CentOS 6.4)

2013-11-13 Thread shlo . afgin
Thanks, It's work!

On Thursday, November 14, 2013 1:29:03 AM UTC+2, jcbollinger wrote:
>
>
>
> On Wednesday, November 13, 2013 8:29:33 AM UTC-6, shlo@gmail.comwrote:
>>
>>
>>
>> From the command line, with '*rpm*' I get errors about dependencies but 
>> if I remove it using '*yum*' it remove it successfully.
>> so I write:
>>
>> *package { 'php-common':*
>> * provider => 'yum',*
>> * ensure => absent,*
>> *}*
>>
>> But it still use the '*rpm*' command and give me conflict rpm have. 
>>
>> It's ignore the provider definition.
>> Why it still don't use the *yum* command?
>>
>>
>
> Because you will potentially remove more packages than just the one you 
> specified.  Puppet is being careful to not change the target machine state 
> in ways that you did not declare.  If you really mean to tell Puppet "Damn 
> the icebergs!  Full speed ahead!" then use "ensure => 'purged'".
>
>
> John
>
>

-- 
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/2add51f7-6cfe-47c5-b6d8-8b044ae76d66%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] What the correct way to downgrade version with puppet? (CentOS 6.4)

2013-11-13 Thread jcbollinger


On Wednesday, November 13, 2013 8:29:33 AM UTC-6, shlo@gmail.com wrote:
>
>
>
> From the command line, with '*rpm*' I get errors about dependencies but 
> if I remove it using '*yum*' it remove it successfully.
> so I write:
>
> *package { 'php-common':*
> * provider => 'yum',*
> * ensure => absent,*
> *}*
>
> But it still use the '*rpm*' command and give me conflict rpm have. 
>
> It's ignore the provider definition.
> Why it still don't use the *yum* command?
>
>

Because you will potentially remove more packages than just the one you 
specified.  Puppet is being careful to not change the target machine state 
in ways that you did not declare.  If you really mean to tell Puppet "Damn 
the icebergs!  Full speed ahead!" then use "ensure => 'purged'".


John

-- 
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/89645d87-53cc-49ae-a4d6-9c24f69d4593%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] What the correct way to downgrade version with puppet? (CentOS 6.4)

2013-11-13 Thread shlo . afgin


>From the command line, with '*rpm*' I get errors about dependencies but if 
I remove it using '*yum*' it remove it successfully.
so I write:

*package { 'php-common':*
* provider => 'yum',*
* ensure => absent,*
*}*

But it still use the '*rpm*' command and give me conflict rpm have. 

It's ignore the provider definition.
Why it still don't use the *yum* command?



On Wednesday, November 13, 2013 12:47:53 PM UTC+2, shlo@gmail.com wrote:
>
>
> Now I got an error that Puppet cannot successfully remove the php with the 
> error:
>
> *Error: Execution of '/bin/rpm -e 'php-5.5.5-2.el6.remi.x86_64' returned 
> 1: error: package 'php-5.5.5-2.el6.remi.x86_64 is not installed*
> *Error: /Stage[main]/Php/Package[php-5.5.5-2.el6.remi.x86_64]/ensure: 
> change from 5.5.5-2.el6.remi to absent failed: Execution of '/bin/rpm -e 
> 'php-5.5.5-2.el6.remi.x86_64' returned 1: error: package 
> 'php-5.5.5-2.el6.remi.x86_64 is not installed*
>
>
> But when I run the command: 
>
> */bin/rpm -e 'php-5.5.5-2.el6.remi.x86_64'* 
>
> *from the command line* *php remove successfully*.
>
> Thank you very much for your answer.
>
>
> On Wednesday, November 13, 2013 5:11:41 AM UTC+2, Derek Harkness wrote:
>>
>> Could you do something like
>>
>> package { ‘php-5.5.5’:
>> ensure => absent,
>> }
>>
>> package { ‘php-5.3.3’:
>> ensure => ‘5.3.3',
>> require => Package[‘php-5.5.5’],
>> }
>>
>>
>> On Nov 12, 2013, at 10:37 , shlo@gmail.com wrote:
>>
>> In this case I need to ensure it delete php-5.5.5 and after that install 
>> php-5.3.3. 
>> When trying to install php-5.3.3 when php-5.5.5 exist it exit with 
>>  errors about conflict in version.
>> How can I ensure that specific version of php is absent?
>>
>> On Monday, November 11, 2013 4:38:12 PM UTC+2, Derek Harkness wrote:
>>>
>>> You can specify a version string for each package.
>>>
>>> package { [ ‘php-xml’, ‘php-common’ ]:
>>> ensure => “5.3.3”,
>>> }
>>>
>>> You might have to break them out and add in some dependency.
>>>
>>> On Nov 10, 2013, at 6:08 , shlo@gmail.com wrote:
>>>
>>> Hi,
>>> I'm using Puppet to downgrade php from 5.5.5 to 5.3.3. It failed because 
>>> yum command failed.
>>> It has dependencies that need to removed or downgrade.
>>>...
>>>php-common(x86-64) = 5.5.5-2.el6.remi is needed by (installed) 
>>> php-xml-5.5.5-2.el6.remi.x86_64
>>>...
>>>
>>> How can I tell Puppet to remove the php-xml, php-common etc from the 
>>> higher version and to install php  and those packages  (php-xml, php-common 
>>> etc) he just remove in  lower version?
>>>
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/puppet-users/8147ba9c-3f34-4b99-a02e-fd23909fb553%40googlegroups.com
>>> .
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/77f65608-d59b-4a3c-a055-b7f09c18a1fd%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>

-- 
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/46da689e-3216-4b9b-8bc9-7d8900db9dc4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] What the correct way to downgrade version with puppet? (CentOS 6.4)

2013-11-13 Thread shlo . afgin

Now I got an error that Puppet cannot successfully remove the php with the 
error:

*Error: Execution of '/bin/rpm -e 'php-5.5.5-2.el6.remi.x86_64' returned 1: 
error: package 'php-5.5.5-2.el6.remi.x86_64 is not installed*
*Error: /Stage[main]/Php/Package[php-5.5.5-2.el6.remi.x86_64]/ensure: 
change from 5.5.5-2.el6.remi to absent failed: Execution of '/bin/rpm -e 
'php-5.5.5-2.el6.remi.x86_64' returned 1: error: package 
'php-5.5.5-2.el6.remi.x86_64 is not installed*


But when I run the command: 

*/bin/rpm -e 'php-5.5.5-2.el6.remi.x86_64'* 

*from the command line* *php remove successfully*.

Thank you very much for your answer.


On Wednesday, November 13, 2013 5:11:41 AM UTC+2, Derek Harkness wrote:
>
> Could you do something like
>
> package { ‘php-5.5.5’:
> ensure => absent,
> }
>
> package { ‘php-5.3.3’:
> ensure => ‘5.3.3',
> require => Package[‘php-5.5.5’],
> }
>
>
> On Nov 12, 2013, at 10:37 , shlo@gmail.com  wrote:
>
> In this case I need to ensure it delete php-5.5.5 and after that install 
> php-5.3.3. 
> When trying to install php-5.3.3 when php-5.5.5 exist it exit with  errors 
> about conflict in version.
> How can I ensure that specific version of php is absent?
>
> On Monday, November 11, 2013 4:38:12 PM UTC+2, Derek Harkness wrote:
>>
>> You can specify a version string for each package.
>>
>> package { [ ‘php-xml’, ‘php-common’ ]:
>> ensure => “5.3.3”,
>> }
>>
>> You might have to break them out and add in some dependency.
>>
>> On Nov 10, 2013, at 6:08 , shlo@gmail.com wrote:
>>
>> Hi,
>> I'm using Puppet to downgrade php from 5.5.5 to 5.3.3. It failed because 
>> yum command failed.
>> It has dependencies that need to removed or downgrade.
>>...
>>php-common(x86-64) = 5.5.5-2.el6.remi is needed by (installed) 
>> php-xml-5.5.5-2.el6.remi.x86_64
>>...
>>
>> How can I tell Puppet to remove the php-xml, php-common etc from the 
>> higher version and to install php  and those packages  (php-xml, php-common 
>> etc) he just remove in  lower version?
>>
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/8147ba9c-3f34-4b99-a02e-fd23909fb553%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
> -- 
> 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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/77f65608-d59b-4a3c-a055-b7f09c18a1fd%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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/79245fa8-d688-41f5-9674-8f56fc6cee07%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] What the correct way to downgrade version with puppet? (CentOS 6.4)

2013-11-12 Thread Derek Harkness
Could you do something like

package { ‘php-5.5.5’:
ensure => absent,
}

package { ‘php-5.3.3’:
ensure => ‘5.3.3',
require => Package[‘php-5.5.5’],
}


On Nov 12, 2013, at 10:37 , shlo.af...@gmail.com wrote:

> In this case I need to ensure it delete php-5.5.5 and after that install 
> php-5.3.3. 
> When trying to install php-5.3.3 when php-5.5.5 exist it exit with  errors 
> about conflict in version.
> How can I ensure that specific version of php is absent?
> 
> On Monday, November 11, 2013 4:38:12 PM UTC+2, Derek Harkness wrote:
> You can specify a version string for each package.
> 
> package { [ ‘php-xml’, ‘php-common’ ]:
>   ensure => “5.3.3”,
> }
> 
> You might have to break them out and add in some dependency.
> 
> On Nov 10, 2013, at 6:08 , shlo@gmail.com wrote:
> 
>> Hi,
>> I'm using Puppet to downgrade php from 5.5.5 to 5.3.3. It failed because yum 
>> command failed.
>> It has dependencies that need to removed or downgrade.
>>...
>>php-common(x86-64) = 5.5.5-2.el6.remi is needed by (installed) 
>> php-xml-5.5.5-2.el6.remi.x86_64
>>...
>> 
>> How can I tell Puppet to remove the php-xml, php-common etc from the higher 
>> version and to install php  and those packages  (php-xml, php-common etc) he 
>> just remove in  lower version?
>> 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/8147ba9c-3f34-4b99-a02e-fd23909fb553%40googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> -- 
> 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/77f65608-d59b-4a3c-a055-b7f09c18a1fd%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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/4D8715E9-12D7-4165-85D5-7F30F11790FF%40mac.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] What the correct way to downgrade version with puppet? (CentOS 6.4)

2013-11-12 Thread shlo . afgin
In this case I need to ensure it delete php-5.5.5 and after that install 
php-5.3.3. 
When trying to install php-5.3.3 when php-5.5.5 exist it exit with  errors 
about conflict in version.
How can I ensure that specific version of php is absent?

On Monday, November 11, 2013 4:38:12 PM UTC+2, Derek Harkness wrote:
>
> You can specify a version string for each package.
>
> package { [ ‘php-xml’, ‘php-common’ ]:
> ensure => “5.3.3”,
> }
>
> You might have to break them out and add in some dependency.
>
> On Nov 10, 2013, at 6:08 , shlo@gmail.com  wrote:
>
> Hi,
> I'm using Puppet to downgrade php from 5.5.5 to 5.3.3. It failed because 
> yum command failed.
> It has dependencies that need to removed or downgrade.
>...
>php-common(x86-64) = 5.5.5-2.el6.remi is needed by (installed) 
> php-xml-5.5.5-2.el6.remi.x86_64
>...
>
> How can I tell Puppet to remove the php-xml, php-common etc from the 
> higher version and to install php  and those packages  (php-xml, php-common 
> etc) he just remove in  lower version?
>
> 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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/8147ba9c-3f34-4b99-a02e-fd23909fb553%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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/77f65608-d59b-4a3c-a055-b7f09c18a1fd%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] What the correct way to downgrade version with puppet? (CentOS 6.4)

2013-11-11 Thread Derek Harkness
You can specify a version string for each package.

package { [ ‘php-xml’, ‘php-common’ ]:
ensure => “5.3.3”,
}

You might have to break them out and add in some dependency.

On Nov 10, 2013, at 6:08 , shlo.af...@gmail.com wrote:

> Hi,
> I'm using Puppet to downgrade php from 5.5.5 to 5.3.3. It failed because yum 
> command failed.
> It has dependencies that need to removed or downgrade.
>...
>php-common(x86-64) = 5.5.5-2.el6.remi is needed by (installed) 
> php-xml-5.5.5-2.el6.remi.x86_64
>...
> 
> How can I tell Puppet to remove the php-xml, php-common etc from the higher 
> version and to install php  and those packages  (php-xml, php-common etc) he 
> just remove in  lower version?
> 
> 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/8147ba9c-3f34-4b99-a02e-fd23909fb553%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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/1480C2B3-3A5D-4A07-BB85-B9CCA4AF8266%40mac.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] What the correct way to downgrade version with puppet? (CentOS 6.4)

2013-11-10 Thread shlo . afgin
Hi,
I'm using Puppet to downgrade php from 5.5.5 to 5.3.3. It failed because 
yum command failed.
It has dependencies that need to removed or downgrade.
   ...
   php-common(x86-64) = 5.5.5-2.el6.remi is needed by (installed) 
php-xml-5.5.5-2.el6.remi.x86_64
   ...

How can I tell Puppet to remove the php-xml, php-common etc from the higher 
version and to install php  and those packages  (php-xml, php-common etc) 
he just remove in  lower version?

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/8147ba9c-3f34-4b99-a02e-fd23909fb553%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.