Jira (PUP-1060) enablerepo and disablerepo for yum type

2014-01-13 Thread Brian Pitts (JIRA)
Title: Message Title










 

 Brian Pitts commented on an issue











 






  Re: enablerepo and disablerepo for yum type 










Is the next step to rewrite this to use package_settings once PUP-1369 lands?












   

 Add Comment











 













 Puppet /  PUP-1060



  enablerepo and disablerepo for yum type 







 it would be nice to be able to enable a disabled repo for the installation on one package.   for example installing facter from EPEL.   something like; package { "facter": ensure => installed, enablerepo => [ "epel", "epel-testing" ]; }  















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Jira (PUP-1060) enablerepo and disablerepo for yum type

2014-02-14 Thread Andrew Parker (JIRA)
Title: Message Title










 

 Andrew Parker updated an issue











 






 Puppet /  PUP-1060



  enablerepo and disablerepo for yum type 










Change By:

 Andrew Parker




Assignee:

 Brian Pitts












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Jira (PUP-1060) enablerepo and disablerepo for yum type

2014-04-16 Thread Adrien Thebo (JIRA)
Title: Message Title










 

 Adrien Thebo updated an issue











 






 Puppet /  PUP-1060



  enablerepo and disablerepo for yum type 










Change By:

 Adrien Thebo




Sprint:

 Week 2014-4-16 to 2014-4-23












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1060) enablerepo and disablerepo for yum type

2014-04-16 Thread Kylo Ginsberg (JIRA)
Title: Message Title










 

 Kylo Ginsberg updated an issue











 






 Puppet /  PUP-1060



  enablerepo and disablerepo for yum type 










Change By:

 Kylo Ginsberg




Component/s:

 Types and Providers












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1060) enablerepo and disablerepo for yum type

2014-04-16 Thread Andy Parker (JIRA)
Title: Message Title










 

 Andy Parker updated an issue











 






 Puppet /  PUP-1060



  enablerepo and disablerepo for yum type 










Change By:

 Andy Parker




Fix Version/s:

 3.6.0












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1060) enablerepo and disablerepo for yum type

2014-04-21 Thread Adrien Thebo (JIRA)
Title: Message Title










 

 Adrien Thebo assigned an issue to Adrien Thebo











 






 Puppet /  PUP-1060



  enablerepo and disablerepo for yum type 










Change By:

 Adrien Thebo




Assignee:

 Brian Pitts Adrien Thebo












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1060) enablerepo and disablerepo for yum type

2014-04-29 Thread Rob Reynolds (JIRA)
Title: Message Title










 

 Rob Reynolds assigned an issue to Rob Reynolds











 






 Puppet /  PUP-1060



  enablerepo and disablerepo for yum type 










Change By:

 Rob Reynolds




Assignee:

 Rob Reynolds












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1060) enablerepo and disablerepo for yum type

2014-05-01 Thread Andy Parker (JIRA)
Title: Message Title










 

 Andy Parker assigned an issue to Andy Parker











 






 Puppet /  PUP-1060



  enablerepo and disablerepo for yum type 










Change By:

 Andy Parker




Assignee:

 Andy Parker












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1060) enablerepo and disablerepo for yum type

2014-05-01 Thread Andy Parker (JIRA)
Title: Message Title










 

 Andy Parker commented on an issue











 






  Re: enablerepo and disablerepo for yum type 










This was implemented using install_options instead of package_options.
An example execution (which causes a failed run in my setup because the package should come from the disabled repo):



puppet apply -e 'package {puppetdb: ensure => installed, install_options => { "--disablerepo" => "puppetlabs-products" } }'



The following interaction shows it using --enablerepo to install using a disabled repo:



[root@localhost ~]# puppet resource yumrepo 'puppetlabs-products' enabled=0
Notice: /Yumrepo[puppetlabs-products]/enabled: enabled changed '1' to '0'
yumrepo { 'puppetlabs-products':
  ensure  => 'present',
  enabled => '0',
}
[root@localhost ~]# yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirrors.syringanetworks.net
 * extras: mirrors.usc.edu
 * updates: mirror.tocici.com
puppetlabs-deps  | 2.5 kB 00:00
repo id  repo namestatus
base CentOS-6 - Base  6,367
extras   CentOS-6 - Extras   14
pl-puppet-3.6.0-rc1  PL Repo for puppet at commit 3.6.0-rc1   2
puppetlabs-deps  Puppet Labs Dependencies El 6 - x86_64  61
updates  CentOS-6 - Updates 864
repolist: 7,308
[root@localhost ~]# puppet apply -e 'package {puppetdb: ensure => installed }'
Notice: Compiled catalog for localhost.corp.puppetlabs.net in environment production in 0.32 seconds
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install puppetdb' returned 1: Error: Nothing to do
Error: /Stage[main]/Main/Package[puppetdb]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install puppetdb' returned 1: Error: Nothing to do
Notice: Finished catalog run in 0.50 seconds
[root@localhost ~]# puppet apply -e 'package {puppetdb: ensure => installed, install_options => { "--enablerepo" => "puppetlabs-products" } }'
Notice: Compiled catalog for localhost.corp.puppetlabs.net in environment production in 0.33 seconds
Notice: /Stage[main]/Main/Package[puppetdb]/ensure: created
Notice: Finished catalog run in 96.29 seconds
[root@localhost ~]#




  

Jira (PUP-1060) enablerepo and disablerepo for yum type

2014-05-01 Thread Andy Parker (JIRA)
Title: Message Title










 

 Andy Parker assigned an issue to Unassigned











 






 Puppet /  PUP-1060



  enablerepo and disablerepo for yum type 










Change By:

 Andy Parker




Assignee:

 Andy Parker












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1060) enablerepo and disablerepo for yum type

2014-06-17 Thread Malte Krupa (JIRA)
Title: Message Title










 

 Malte Krupa commented on an issue











 






  Re: enablerepo and disablerepo for yum type 










Hi,
currently I'm running 3.6.2 on master/agents and try to use this feature on CentOS 6.5 but no matter what I do, the agent ignores my "install_options" option.
I tried the following lines (also with "ensure => installed" and ' instead of "):


package {foo: ensure => latest, install_options => [{ "--enablerepo" => "bar" }] }
package {foo: ensure => latest, install_options => { "--enablerepo" => "bar" } }
package {foo: ensure => latest, install_options => [{ "enablerepo" => "bar" }] }
package {foo: ensure => latest, install_options => { "enablerepo" => "bar" } }
package {foo: ensure => latest, install_options => [{ "--enablerepo=bar" }] }
package {foo: ensure => latest, install_options => { "--enablerepo=bar" } }
package {foo: ensure => latest, install_options => [{ "enablerepo=bar" }] }
package {foo: ensure => latest, install_options => { "enablerepo=bar" } }



Did I miss something? Correct me if I'm wrong, but as far as I can see this should be available in 3.6.2 (8aaa17e6 is tagged with 3.6.2).
Thanks in advance for your effort.
Regards, Malte Krupa












   

 Add Comment











 













 Puppet /  PUP-1060



  enablerepo and disablerepo for yum type 







 it would be nice to be able to enable a disabled repo for the installation on one package.   for example installing facter from EPEL.   something like;   {noformat}  package { "facter": ensure => installed, enablerepo => [ "epel", "epel-testing" ]; }  {noformat}


Jira (PUP-1060) enablerepo and disablerepo for yum type

2014-06-23 Thread Sylvain Mougenot (JIRA)
Title: Message Title










 

 Sylvain Mougenot commented on an issue











 






  Re: enablerepo and disablerepo for yum type 










I confirm the previous comment : it is broken since 3.6.1.
Sample code


enablerepo.pp



  yumrepo {'nginx':
name => 'nginx',
baseurl  => 'http://nginx.org/packages/centos/6/$basearch/',
enabled  => '0',
gpgcheck => '0', 
descr=> 'Nginx Repo'
  }

  package { 'nginx':
ensure  => present,
install_options => ['--enablerepo=nginx'],
require => Yumrepo['nginx']
  }






puppet apply -dv enablerepo.pp



Works on 3.6.0 :



Debug: Prefetching yum resources for package
Debug: Executing '/bin/rpm --version'
Debug: Executing '/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n''
Debug: Executing '/bin/rpm -q nginx --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Executing '/bin/rpm -q nginx --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n --whatprovides'
Debug: Package[nginx](provider=yum): Ensuring => present
Debug: Executing '/usr/bin/yum -d 0 -e 0 -y --enablerepo=Sogelink-CACHE install nginx'
Debug: Executing '/bin/rpm -q nginx --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Notice: /Stage[main]/Commun::Proxy_ign_inte/Package[nginx]/ensure: created



Fails on 3.6.1 or 3.6.2 :



Debug: Prefetching yum resources for package
Debug: Executing '/bin/rpm --version'
Debug: Executing '/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n''
Debug: Executing '/bin/rpm -q nginx --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Executing '/usr/bin/yum -d 0 -e 0 -y list nginx'
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y list nginx' returned 1: Error: No matching Packages to list
Error: /Stage[main]/Commun::Proxy_ign_inte/Package[nginx]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list nginx' returned 1: Error: No matching Packages to list















   

 

Jira (PUP-1060) enablerepo and disablerepo for yum type

2014-06-23 Thread Felix Frank (JIRA)
Title: Message Title










 

 Felix Frank commented on an issue











 






  Re: enablerepo and disablerepo for yum type 










Thanks for taking the time to look into this.
I believe that a regression should be tracked through a new Ticket that refers to this one instead of re-opening.












   

 Add Comment











 













 Puppet /  PUP-1060



  enablerepo and disablerepo for yum type 







 it would be nice to be able to enable a disabled repo for the installation on one package.   for example installing facter from EPEL.   something like;   {noformat}  package { "facter": ensure => installed, enablerepo => [ "epel", "epel-testing" ]; }  {noformat}















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1060) enablerepo and disablerepo for yum type

2014-07-24 Thread Darroch Royden (JIRA)
Title: Message Title










 

 Darroch Royden commented on an issue











 






  Re: enablerepo and disablerepo for yum type 










Is there an active ticket for this? It looks like the install_options directive is not being passed to the yum list command on line 96 in  /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yum.rb



unless @resource.allow_virtual?
  yum '-d', '0', '-e', '0', '-y', :list, wanted
end



Current a work around would be to supply the --enablerepo=repo in the install_options and then include (which will cause it to skip the above check):



allow_virtual => yes,



In the package definition. 












   

 Add Comment











 













 Puppet /  PUP-1060



  enablerepo and disablerepo for yum type 







 it would be nice to be able to enable a disabled repo for the installation on one package.   for example installing facter from EPEL.   something like;   {noformat}  package { "facter": ensure => installed, enablerepo => [ "epel", "epel-testing" ]; }  {noformat}















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)
 

Jira (PUP-1060) enablerepo and disablerepo for yum type

2013-12-16 Thread redmine.exporter (JIRA)
Title: Message Title










 

 redmine.exporter created an issue











 






 Puppet /  PUP-1060



  enablerepo and disablerepo for yum type 










Issue Type:

  New Feature




Assignee:


 Unassigned




Created:


 16/Dec/13 9:45 AM




Labels:


 redmine customer




Priority:

  Normal




Reporter:

 redmine.exporter










it would be nice to be able to enable a disabled repo for the installation on one package.
for example installing facter from EPEL.
something like;
 package  { "facter": ensure => installed, enablerepo => [ "epel", "epel-testing" ]; }













   

 Add Comment