Hi all, Does a subscription result in an auto-requirement? For example, in the service below, is the require redundant? package { ''PACKAGE'': ensure => latest } file { ''CONFIG-FILE'': ... require => Package[''PACKAGE''] } service { ''SERVICE'': ... subscribe => File[''CONFIG_FILE''], require => File[''CONFIG_FILE''] } Martin. -- 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 Harrigan <martinharrigan@gmail.com> writes:> Hi all, > > Does a subscription result in an auto-requirement?A "subscribe" should imply a "require", although this is not explicitly stated at http://docs.puppetlabs.com/references/stable/metaparameter.html#subscribe The answer is a firm "I think so". :) -- Stig Sandbeck Mathisen Oooo, shiny! -- 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.
On Wed, Apr 27, 2011 at 3:40 PM, Stig Sandbeck Mathisen <ssm@fnord.no>wrote:> Martin Harrigan <martinharrigan@gmail.com> writes: > > > Hi all, > > > > Does a subscription result in an auto-requirement? > > A "subscribe" should imply a "require", although this is not explicitly > stated at > http://docs.puppetlabs.com/references/stable/metaparameter.html#subscribe > > The answer is a firm "I think so". :) > >This might make it a bit firmer :) file { "/tmp/testfile": ensure => file, content => generate("/bin/date"), } exec { "/opt/local/bin/cowsay moo": subscribe => File["/tmp/testfile"], before => File["/tmp/testfile"], } kripke:~ nbk$ puppet apply -v /tmp/test.pp err: Could not apply complete catalog: Found 1 dependency cycle: (File[/tmp/testfile] => Exec[/opt/local/bin/cowsay moo] => File[/tmp/testfile]) -- 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.
On Wed, Apr 27, 2011 at 2:47 PM, Nigel Kersten <nigel@puppetlabs.com> wrote:> > > On Wed, Apr 27, 2011 at 3:40 PM, Stig Sandbeck Mathisen <ssm@fnord.no> > wrote: >> >> Martin Harrigan <martinharrigan@gmail.com> writes: >> >> > Hi all, >> > >> > Does a subscription result in an auto-requirement? >> >> A "subscribe" should imply a "require", although this is not explicitly >> stated at >> http://docs.puppetlabs.com/references/stable/metaparameter.html#subscribe >> >> The answer is a firm "I think so". :) >> > > This might make it a bit firmer :) > file { "/tmp/testfile": > ensure => file, > content => generate("/bin/date"), > } > exec { "/opt/local/bin/cowsay moo": > subscribe => File["/tmp/testfile"], > before => File["/tmp/testfile"], > } > kripke:~ nbk$ puppet apply -v /tmp/test.pp > err: Could not apply complete catalog: Found 1 dependency cycle: > (File[/tmp/testfile] => Exec[/opt/local/bin/cowsay moo] => > File[/tmp/testfile])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.