Ask Your Question

Is there a way to declare declare a custom type by it's fully qualified name?

asked 2016-09-20 08:15:22 -0600

schowdhury gravatar image

I'm currently using 2 puppet modules, and they both have custom types, which happen to have the same names:


In this example, we have 2 modules that each have a custom type called "zabbixhost" and "zabbixhostgroup"

I tried to declare them, but in my case they are being evaluated by the wrong .rb fie. Is there a syntax I can use to refer to a custom type by it's fully qualified name?

edit retag flag offensive close merge delete


The FQN would be `::zabbixhost` and `::zabbixhostgroup` I guess, unless they've explicitly assigned themselves to a specific namespace. [The name of the 'main' namespace is an empty string]

Kai Burghardt gravatar imageKai Burghardt ( 2016-09-20 08:26:28 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-09-20 11:02:30 -0600

lavaman gravatar image

You cannot use both of those modules at the same time. They both contain class zabbix, which means you must choose one or the other. Depending on how you deploy puppet modules, you're likely only getting one of them in the end anyway. Pick one and modify your code to use the one you've chosen.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-09-20 08:15:22 -0600

Seen: 19 times

Last updated: Sep 20 '16