Sandra Schlichting
2012-Oct-09 08:45 UTC
[Puppet Users] Possible to disable global definition outside of nodes?
Hi =) I just made the following mistake, but puppet 2.7.19 didn''t complain. node test { ... } package { [ ... ]: ensure => present } So I guess all the packages became global for all nodes? Is it possible to disable this "global definition" option, or get puppet to warn about it? Hugs, Sandra -- 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/-/fOta6N6Dbx4J. 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.
Henrik Lindberg
2012-Oct-09 10:53 UTC
Re: [Puppet Users] Possible to disable global definition outside of nodes?
Afaik, there is no way to make puppet tell you about this. Puppet is a powerful tool and you got what you asked for :-) What you can do is to write Rspec tests for your catalogs and use that as a regression test. Hope that helps. - henrik On 2012-09-10 10:45, Sandra Schlichting wrote:> Hi =) > > I just made the following mistake, but puppet 2.7.19 didn''t complain. > > node test { > ... > } > package { [ ... ]: ensure => present } > > So I guess all the packages became global for all nodes? > > Is it possible to disable this "global definition" option, or get puppet > to warn about it? > > Hugs, > Sandra > > -- > 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/-/fOta6N6Dbx4J. > 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.
Sandra Schlichting
2012-Oct-10 17:35 UTC
Re: [Puppet Users] Possible to disable global definition outside of nodes?
> Afaik, there is no way to make puppet tell you about this. > Puppet is a powerful tool and you got what you asked for :-) >I have now written a script that will check for this, and posted it in "Please review this node check script" =)> What you can do is to write Rspec tests for your catalogs and use that > as a regression test. > > Sounds very interesting! Will have to look at Rspec.-- 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/-/FfM_2Sb1DwkJ. 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.