Ask Your Question
0

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

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

schowdhury gravatar image

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

https://github.com/fiddyspence/puppet...

and:

https://github.com/voxpupuli/puppet-z...

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

Comments

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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

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

Stats

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

Seen: 18 times

Last updated: Sep 20 '16