Hi Jon,

In Puppet 6 we're going to start requiring that the names of
classes/defines match the name that's implied by their file path[1]. We
added that deprecation warning in 5.5.6[2] as part of a push to get
upcoming Puppet 6 changes printing warnings whenever possible.

[1] https://tickets.puppetlabs.com/browse/PUP-1434 and
https://tickets.puppetlabs.com/browse/PUP-4242
[2] https://tickets.puppetlabs.com/browse/PUP-8894


On Tue, Aug 28, 2018 at 8:31 AM <[email protected]> wrote:

> I was away on vacation for a month, upon getting back I am finding the
> Puppet Agent is now throwing a warning on all of the defines I have in a
> module that is applied to all our Linux servers.  (we are auto updating
> point releases)
>
> Warning: Unacceptable location. The name 'remote_file' is unacceptable in
> file '/etc/puppet/modules/seed/manifests/init.pp' (file:
> /etc/puppet/modules/seed/manifests/init.pp, line: 1123, column: 1)
>
> We have several defines in this module, all now causing the same warning
> message and wasn't a few months ago.  I couldn't find anything in the 5.5.x
> release notes to explain why this warning has started to pop up.
>
> In this case the define warned about above looks like:
>
> define remote_file($remote_location=undef, $mode='0644', $owner=undef,
> $group=undef) {
>     Code here
> }
>
> Thanks in advance for any ideas anyone might have on why this warning has
> started to pop up.
>
> Jon
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/673af078-aadf-4c43-8f8a-c451f688a85f%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/673af078-aadf-4c43-8f8a-c451f688a85f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Regards,

Branan Riley
Senior Software Engineer, Puppet inc.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CADWDnrmGkWcac83DvcodRie%3DuswbaBd0M1E-YjUva%2BjViKB-Tg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to