Hi,
On 08/30/2014 12:05 AM, Mike Reed wrote: > network-hostname/role-number (ie. home-elastic-01/work-mysql-02) are you sure that it's safe to include slashes in host names? Does that not clash with some internet standard? > I've written a very simple fact to start with that looks like this > (please excuse my code as I'm quite new to ruby): The code looks quite fine, actually. Good work. > This fact obviously doesn't get me what I want yet, but I'd like to > test this on a node to ensure basic parsing of the hostname and this > is where my confusion comes in. I've created a puppet module called > sys_ident and added the above code into a file called network_geo.rb, > located within the /sys_ident/files/ directory. That's the mistake right there. The Ruby file needs to be in sys_ident/lib/facter/. The Custom Fact documentation links you to https://docs.puppetlabs.com/guides/plugins_in_modules.html#module-structure where this is explained. HTH, Felix -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/54033A00.1030607%40Alumni.TU-Berlin.de. For more options, visit https://groups.google.com/d/optout.