Re: [Puppet Users] Could not find a default provider for package

2011-06-19 Thread Patrick Mohr
On Sat, Jun 18, 2011 at 6:24 PM, d0ugb d0u...@gmail.com wrote:

 Need some help here. I am using puppet to mange some Gentoo boxes, and
 when working with packages I keep getting the following error:

 Could not find a default provider for package

 Version:

 *  app-admin/puppet
  Latest version available: 0.25.0-r1
  Latest version installed: 0.25.0-r1
  Size of files: 592 kB
  Homepage:  http://reductivelabs.com/projects/puppet
  Description:   A system automation and configuration management
 software
  License:   GPL-2


1) I really recommend avoiding versions of puppet whos versions end with a
.0 if you want a stable version.

2) This error means that puppet can't decide which provider to use for
installing.  In the case of Ubuntu, this would be Apt.

3) Look at the type reference
http://docs.puppetlabs.com/references/0.25.0/type.html#package and find the
section talking about provider.  One of them should mention the comment
you use for launching the package manager.  (probably the one mentioning
emerge)

4) It says catagory is read-only, so remove that.

5) I think name isn't needed.  After your manifest is working, try
removing that.

6) You might want to try to figure out why it didn't get the right provider.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] array in template

2011-06-19 Thread romuald FREBAULT
hi,
no, it use facts architecture in facter and not the lsb_release facts

architecture = i386

we have debian and redhat nodes, no ubuntu, but i think it's the same result



2011/6/15 Nathan Clemons nat...@livemocha.com

 Do you have any machines which show the 32-bit machines as i686? I know at
 least 32-bit Ubuntu will use that:

 nathan@vervain:~$ arch
 i686
 nathan@vervain:~$ cat /etc/lsb-release
 DISTRIB_ID=Ubuntu
 DISTRIB_RELEASE=10.04
 DISTRIB_CODENAME=lucid
 DISTRIB_DESCRIPTION=Ubuntu 10.04.2 LTS
 nathan@vervain:~$

 --
 Nathan Clemons
 http://www.livemocha.com
 The worlds largest online language learning community



 On Wed, Jun 15, 2011 at 5:35 AM, romuald FREBAULT kurgan...@gmail.comwrote:

 thanks for your answer, i finally wrote

 % if architecture == i386 %
 stuff
 %else%
 stuff
 %end%


 2011/6/14 Ken Barber k...@puppetlabs.com

 Try:

 % if [x86_64,amd64].include?(architecture) %
 ... do stuff ...
 % end %

 ken.

 On Tue, Jun 14, 2011 at 11:30 AM, romuald FREBAULT kurgan...@gmail.com
 wrote:
  Hi,
 
  I have a recipe that deploy a nrpe_local.cfg.
  In my template, i want to deploy diffrent lines between 32 and 64 bits.
 
  We have hosts uder redhat and debian,.
  When i write % if architecture == i386 -%
  no problem, the lines are well deployed on redhat and debian, but for
 the 64
  bits, redhat call the architecture x86_64 and debian amd64...
  i tried to make an array like this
  % if architecture == x86_64, amd64 -%
  or like this
  % if architecture == x86_64, amd64 -%
  or
  % if architecture == x86_64 | amd64 -%
 
  and many other tries, but i couldn't get it to work...
 
  does anyone knows how i could solve my problem?
 
  --
  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+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/puppet-users?hl=en.
 

 --
 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+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.


  --
 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+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.


  --
 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+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.


-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Facter + storeconfigs missing fact_values

2011-06-19 Thread josbal
Hi Guys,

Was wondering if someone could point me in a way to diagnose my issue.

I have a custom fact that i deployed on all my nodes. If i run the
fact manually i get results as expected. When puppet runs only 5 or so
nodes are storing this particular fact in the storeconfig mysql
database. All other facts are storing fine for every node. As running
the fact manually works on every node, i don't know why this fact for
most nodes isn't populating in the database.

Any ideas on how i could see what is happening within the puppet/
facter processing?

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Facter + storeconfigs missing fact_values

2011-06-19 Thread Patrick Mohr
Well, it would help if you can find out if the problem is with storeconfigs
of the rest of puppet.  Does the fact seem to be affecting the manifest?

On Sun, Jun 19, 2011 at 7:48 PM, josbal joshua.bald...@gmail.com wrote:

 Hi Guys,

 Was wondering if someone could point me in a way to diagnose my issue.

 I have a custom fact that i deployed on all my nodes. If i run the
 fact manually i get results as expected. When puppet runs only 5 or so
 nodes are storing this particular fact in the storeconfig mysql
 database. All other facts are storing fine for every node. As running
 the fact manually works on every node, i don't know why this fact for
 most nodes isn't populating in the database.

 Any ideas on how i could see what is happening within the puppet/
 facter processing?

 --
 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+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.



-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] How to manage many nodes easily?

2011-06-19 Thread flex
We have many modules and many nodes, every node may use different module, so
it's very unpleasant to modify the nodes.pp
Then i saw the external node, but seems it only support class and we have
many defines called in node.pp

So here is my question: Is there another way for us to manage so many nodes
easily or should i change all the defines to classes and using external
nodes?

-- 
System Administrator, Focus on System Management and Basic Development

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.