Hi Dan, On Tue, 2012-08-21 at 02:07 -0700, Dan Bode wrote: > Hi Happy Puppet Developers, > > > I have a few questions about the device management code. > > > 1. What is the recommended way to retrieve the device > connection information from a provider? Is it: > > > Puppet::Util::NetworkDevice.current
This retrieves the current Network Device. It returns an instance of a class inheriting Puppet::Util::NetworkDevice::Base. This last one allows to get the url to connect to. So: Puppet::Util::NetworkDevice.current.url gives you the url to connect to the current device. > 2. Is it possible to have more settings in device.conf than just url? > > > For example: > > > [my_cert] > device my_device > url my://url > secret my_secret > > > Running Puppet device with the above results in: > > > Could not run: Invalid line 8: secret my_secret > > > I assume this means no? It means no without modifying puppet. Note that it would be trivial to add more directives to the device.conf and store those directives as members or an options hash in the current device instance. > 3. Is there any specific reason that puppet device does not support > 'puppet apply' type runs? Puppet apply can use device directly (but not device.conf). You just need to add (at least in the two device types I wrote) the "device_url" parameter to the given types and then run puppet apply on your manifest. But the feature you're describing is tracked by: http://projects.puppetlabs.com/issues/9657 Hope that helps, -- Brice Figureau Follow the latest Puppet Community evolutions on www.planetpuppet.org! -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
