Med75
2012-Jun-15 08:45 UTC
[Puppet Users] Unsupported osfamily: Linux operatingsystem: Amazon
Hi all, just installed the puppetlabs-mysql module for puppet on my Puppet server which is an Amazon Linux (based on RedHat), but I get this error when I run puppet agent --test : *err: Could not retrieve catalog from remote server: Error 400 on SERVER: Unsupported osfamily: Linux operatingsystem: Amazon, module mysql only support osfamily RedHat and Debian at /etc/puppet/modules/mysql/manifests/params.pp:59 on node ip-10-XXX-XX-XX.ec2.internal* Does anyone know how to avoid this error ? Thank you for your help ! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/_cmZjVImnCIJ. 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.
Sergey Zhuga
2012-Jun-15 08:56 UTC
Re: [Puppet Users] Unsupported osfamily: Linux operatingsystem: Amazon
Hi, try to fix the module like that: --- params.pp.orig 2012-05-05 01:12:16.000000000 +0300 +++ params.pp 2012-06-15 11:53:13.000000000 +0300 @@ -32,7 +32,7 @@ } case $::osfamily { - ''RedHat'': { + ''RedHat'', ''Amazon'': { $service_name = ''mysqld'' $client_package_name = ''mysql'' $socket = ''/var/lib/mysql/mysql.sock'' On 15.06.2012 11:45, Med75 wrote:> Hi all, > > just installed the puppetlabs-mysql module for puppet on my Puppet > server which is an Amazon Linux (based on RedHat), but I get this error > when I run puppet agent --test : > *err: Could not retrieve catalog from remote server: Error 400 on > SERVER: Unsupported osfamily: Linux operatingsystem: Amazon, module > mysql only support osfamily RedHat and Debian at > /etc/puppet/modules/mysql/manifests/params.pp:59 on node > ip-10-XXX-XX-XX.ec2.internal* > > Does anyone know how to avoid this error ? Thank you for your help ! > > -- > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/_cmZjVImnCIJ. > 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.-- 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.
Med75
2012-Jun-15 10:13 UTC
Re: [Puppet Users] Unsupported osfamily: Linux operatingsystem: Amazon
Hi, I tried the fix but I stil get the same error message. Do I need to restart the puppet master service after applying the fix ? thanks Le vendredi 15 juin 2012 10:56:40 UTC+2, Sergey Zhuga a écrit :> > Hi, try to fix the module like that: > > --- params.pp.orig 2012-05-05 01:12:16.000000000 +0300 > +++ params.pp 2012-06-15 11:53:13.000000000 +0300 > @@ -32,7 +32,7 @@ > } > > case $::osfamily { > - ''RedHat'': { > + ''RedHat'', ''Amazon'': { > $service_name = ''mysqld'' > $client_package_name = ''mysql'' > $socket = ''/var/lib/mysql/mysql.sock'' > > On 15.06.2012 11:45, Med75 wrote: > > Hi all, > > > > just installed the puppetlabs-mysql module for puppet on my Puppet > > server which is an Amazon Linux (based on RedHat), but I get this error > > when I run puppet agent --test : > > *err: Could not retrieve catalog from remote server: Error 400 on > > SERVER: Unsupported osfamily: Linux operatingsystem: Amazon, module > > mysql only support osfamily RedHat and Debian at > > /etc/puppet/modules/mysql/manifests/params.pp:59 on node > > ip-10-XXX-XX-XX.ec2.internal* > > > > Does anyone know how to avoid this error ? Thank you for your help ! > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Puppet Users" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/puppet-users/-/_cmZjVImnCIJ. > > 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. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/uMsV7V9gy6wJ. 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.
Michael Baydoun
2012-Jun-20 19:05 UTC
Re: [Puppet Users] Unsupported osfamily: Linux operatingsystem: Amazon
You do not need to restart anything The case statement in the module is using the variable $osfamily, not $operatingsystem The error message is stating the osfamily is Linux Replace where you entered ''Amazon'' with ''Linux'' so it reads as follows ''RedHat'', ''Linux'': { On Fri, Jun 15, 2012 at 6:13 AM, Med75 <mohamed.hadrouj@viavoo.com> wrote:> Hi, > I tried the fix but I stil get the same error message. Do I need to > restart the puppet master service after applying the fix ? thanks > > Le vendredi 15 juin 2012 10:56:40 UTC+2, Sergey Zhuga a écrit : > >> Hi, try to fix the module like that: >> >> --- params.pp.orig 2012-05-05 01:12:16.000000000 +0300 >> +++ params.pp 2012-06-15 11:53:13.000000000 +0300 >> @@ -32,7 +32,7 @@ >> } >> >> case $::osfamily { >> - ''RedHat'': { >> + ''RedHat'', ''Amazon'': { >> $service_name = ''mysqld'' >> $client_package_name = ''mysql'' >> $socket = ''/var/lib/mysql/mysql.sock'' >> >> On 15.06.2012 11:45, Med75 wrote: >> > Hi all, >> > >> > just installed the puppetlabs-mysql module for puppet on my Puppet >> > server which is an Amazon Linux (based on RedHat), but I get this error >> > when I run puppet agent --test : >> > *err: Could not retrieve catalog from remote server: Error 400 on >> > SERVER: Unsupported osfamily: Linux operatingsystem: Amazon, module >> > mysql only support osfamily RedHat and Debian at >> > /etc/puppet/modules/mysql/**manifests/params.pp:59 on node >> > ip-10-XXX-XX-XX.ec2.internal* >> > >> > Does anyone know how to avoid this error ? Thank you for your help ! >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups "Puppet Users" group. >> > To view this discussion on the web visit >> > https://groups.google.com/d/**msg/puppet-users/-/_**cmZjVImnCIJ<https://groups.google.com/d/msg/puppet-users/-/_cmZjVImnCIJ>. >> >> > 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<puppet-users%2Bunsubscribe@googlegroups.com>. >> >> > For more options, visit this group at >> > http://groups.google.com/**group/puppet-users?hl=en<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 view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/uMsV7V9gy6wJ. > > 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. >-- 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.