Possible to disable global definition outside of nodes?

20 views
Skip to first unread message

Sandra Schlichting

unread,
Oct 9, 2012, 4:45:12 AM10/9/12
to puppet...@googlegroups.com
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

Henrik Lindberg

unread,
Oct 9, 2012, 6:53:45 AM10/9/12
to puppet...@googlegroups.com
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
> --
> 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...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.


Sandra Schlichting

unread,
Oct 10, 2012, 1:35:05 PM10/10/12
to puppet...@googlegroups.com

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.

 
Reply all
Reply to author
Forward
0 new messages