heriyanto
2012-Jul-31 08:25 UTC
[Puppet Users] "Could not find dependency Package" even the package already theres.
Dear All, I just do something simple just want to copy file, this my syntax, class asterisk::conf { file { "/etc/asterisk/extensions.conf": owner => asterisk, group => asterisk, mode => 644, source => "puppet:///modules/asterisk/extensions.conf", require => Package["asterisk"], this one doesn''t work require => Package["asterisk"], the package already installed. but when i trying with vim as name package its work, even i already remove the package. something wrong? i never found this before on puppet. Thanks. Best regards, Heriyanto -- 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.
Marc Lucke
2012-Jul-31 08:32 UTC
Re: [Puppet Users] "Could not find dependency Package" even the package already theres.
On 31/07/2012, at 6:25 PM, heriyanto <shell.heriyanto@gmail.com> wrote:> Dear All, > > I just do something simple just want to copy file, this my syntax, > > class asterisk::conf { > file { "/etc/asterisk/extensions.conf": > owner => asterisk, > group => asterisk, > mode => 644, > source => "puppet:///modules/asterisk/extensions.conf", > require => Package["asterisk"], > > this one doesn''t work require => Package["asterisk"], the package > already installed. > but when i trying with vim as name package its work, even i already > remove the package. > something wrong? i never found this before on puppet. Thanks.do you have something like: package { asterisk: ensure => installed …. } if you search your repos for asterisk does it come up? -- 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.
heriyanto
2012-Jul-31 08:58 UTC
Re: [Puppet Users] "Could not find dependency Package" even the package already theres.
asterisk package already installed. I don''t plan installation for this package managed by puppet. just want manage the file configuration. it come up when i yum search. actually how "require => Package" working? its checking to repos or into system? Thanks On 07/31/2012 03:32 PM, Marc Lucke wrote:> On 31/07/2012, at 6:25 PM, heriyanto <shell.heriyanto@gmail.com> wrote: > >> Dear All, >> >> I just do something simple just want to copy file, this my syntax, >> >> class asterisk::conf { >> file { "/etc/asterisk/extensions.conf": >> owner => asterisk, >> group => asterisk, >> mode => 644, >> source => "puppet:///modules/asterisk/extensions.conf", >> require => Package["asterisk"], >> >> this one doesn''t work require => Package["asterisk"], the package >> already installed. >> but when i trying with vim as name package its work, even i already >> remove the package. >> something wrong? i never found this before on puppet. Thanks. > do you have something like: > > package { asterisk: ensure => installed …. } > > if you search your repos for asterisk does it come up? >-- 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.
Martin Alfke
2012-Jul-31 09:02 UTC
Re: [Puppet Users] "Could not find dependency Package" even the package already theres.
On 31.07.2012, at 10:58, heriyanto wrote:> asterisk package already installed. I don''t plan installation for this package managed by puppet. > just want manage the file configuration. > > it come up when i yum search. > > actually how "require => Package" working? its checking to repos or into system?Package[''asterisk''] is a reference. You somewhere have a package resource definition: package {''asterisk'': ....} the require => Package ensures, that the package is installed prior doing the configuration file.> > Thanks > On 07/31/2012 03:32 PM, Marc Lucke wrote: >> On 31/07/2012, at 6:25 PM, heriyanto <shell.heriyanto@gmail.com> wrote: >> >>> Dear All, >>> >>> I just do something simple just want to copy file, this my syntax, >>> >>> class asterisk::conf { >>> file { "/etc/asterisk/extensions.conf": >>> owner => asterisk, >>> group => asterisk, >>> mode => 644, >>> source => "puppet:///modules/asterisk/extensions.conf", >>> require => Package["asterisk"], >>> >>> this one doesn''t work require => Package["asterisk"], the package >>> already installed. >>> but when i trying with vim as name package its work, even i already >>> remove the package. >>> something wrong? i never found this before on puppet. Thanks. >> do you have something like: >> >> package { asterisk: ensure => installed …. } >> >> if you search your repos for asterisk does it come up? >> > > > -- > 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. >-- 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.
Jakov Sosic
2012-Jul-31 12:35 UTC
Re: [Puppet Users] "Could not find dependency Package" even the package already theres.
On 07/31/2012 10:58 AM, heriyanto wrote:> asterisk package already installed. I don''t plan installation for this package managed by puppet. > just want manage the file configuration.You cannot depend on an item that is not defined somewhere else in the manifest, or in a node configuration. You would have to remove dependency from your class (line that says: require => Package["asterisk"],), because dependency searches through compiled puppet configuration for package {"asterisk": } definition. I would recommend that you write another resource that checks for some file that package itself bring along, and depend on that resource. -- Jakov Sosic www.srce.unizg.hr -- 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.
Calvin Walton
2012-Jul-31 21:10 UTC
Re: [Puppet Users] "Could not find dependency Package" even the package already theres.
On Tue, 2012-07-31 at 15:58 +0700, heriyanto wrote:> asterisk package already installed. I don''t plan installation for this package managed by puppet. > just want manage the file configuration.If the package is already installed, adding package { ''asterisk'': } to your puppet config won''t do anything to your system. Puppet will simply notice that the ''asterisk'' package is already there, mark the resource as present, and continue on with all the dependencies satisfied.> it come up when i yum search. > > actually how "require => Package" working? its checking to repos or into system?require => Package[] doesn''t do anything by itself. All it does is make sure that the corresponding package {} resource is checked before whatever you added the ''require'' to. It just sets the order. The package {} resource itself will query the package management system to see if the package is installed, and will install it if it is missing. -- Calvin Walton <calvin.walton@kepstin.ca> -- 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.