coralie ve
2012-Jan-13 19:04 UTC
[Puppet Users] Problem with not installing package, exec do an error
Hello
I have a list of successive package, and it occured that some package
are not installed.
exec { ''sudo gem update --system'':
path => [''/usr/bin/''],
alias => updateGem,
}
package { '' libmemcached-dev'':
ensure => present,
alias => memDev,
require => Exec[updateGem],
}
package { '' libmemcached-dbg'':
ensure => present,
alias => memDbg,
require => Package[memDev],
}
package { '' libsas2-dev'':
ensure => present,
alias => sasDev,
require => Package[memDdg],
}
package { ''libcurl3-dev'':
ensure => present,
alias => curlDev,
require => Package[sasDev],
}
package {''libmysqlclient-dev'':
ensure => present,
alias => libSql,
require => Package[curlDev],
}
package {''libsqlite3-dev'':
ensure => present,
alias => libSql3,
require => Package[libSql],
}
The package libcurl3-dev, libsas2-dev, libmemcached-dbg, libmemcached-
dev are not installed here. So i don''t understand why because other
package do.
So i try something desperate :
exec { ''sudo apt-get install libmemcached-dev'':
path => [''/usr/bin''],
alias => memDev,
require => Exec[updateGem],
}
Unfortunatly it doesn''t work either : err: /Stage[main]//Exec[sudo apt-
get install libmemcached-dev]/returns: change from notrun to 0 failed:
sudo apt-get install libmemcached-dev returned 1 instead of one of [0]
at /mnt/hgfs/puppet/install.pp:10
I would prefer to do it with package, so if someone have an idea.
Thank you !
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Daniel Pittman
2012-Jan-26 19:58 UTC
Re: [Puppet Users] Problem with not installing package, exec do an error
On Fri, Jan 13, 2012 at 11:04, coralie ve <coralie.ve@gmail.com> wrote:> I have a list of successive package, and it occured that some package > are not installed.[…]> So i try something desperate : > > exec { ''sudo apt-get install libmemcached-dev'': > path => [''/usr/bin''], > alias => memDev, > require => Exec[updateGem], > } > > Unfortunatly it doesn''t work either : err: /Stage[main]//Exec[sudo apt- > get install libmemcached-dev]/returns: change from notrun to 0 failed: > sudo apt-get install libmemcached-dev returned 1 instead of one of [0] > at /mnt/hgfs/puppet/install.pp:10 > > I would prefer to do it with package, so if someone have an idea.It looks to me like your problem is with `apt-get` itself, rather than Puppet - we can''t install a package if the underlying tool refuses to do so. At a guess, the `sudo` in the exec is not going to help, but since the agent runs as root you shouldn''t have a problem. So, can you try running the `apt-get install libmemcached-dev` package by hand and see what the output is? Paste it into this thread if you can''t figure it out directly from that. -- Daniel Pittman ⎋ Puppet Labs Developer – http://puppetlabs.com ♲ Made with 100 percent post-consumer electrons -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
krish
2012-Jan-26 21:29 UTC
Re: [Puppet Users] Problem with not installing package, exec do an error
> Unfortunatly it doesn''t work either : err: /Stage[main]//Exec[sudo apt- > get install libmemcached-dev]/returns: change from notrun to 0 failed: > sudo apt-get install libmemcached-dev returned 1 instead of one of [0] > at /mnt/hgfs/puppet/install.pp:10 > > I would prefer to do it with package, so if someone have an idea. >Your apt-get is broken due to half installed package in dpkginfo directory. You''ll have to solve this manually on the node first. -- Krish olindata.com -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Apparently Analagous Threads
- CEBA-2015:1504 CentOS 7 libmemcached FASTTRACK BugFix Update
- CentOS-announce Digest, Vol 125, Issue 11
- CentOS forum search link in http://wiki.centos.org/AdditionalResources/Repositories under Atomic Repo
- [PATCH RFCv2 0/4] virtio-mem: paravirtualized memory
- [PATCH v1 00/11] virtio-mem: paravirtualized memory