Posted on 10-13-2011 10:17 AM
Does anyone have an extension attribute or other means of extracting an OS X or iOS device's location at that moment? And if so, is there an easy way to integrate something like a Google Map with that info into your JSS?
-- -- -- -- -- -- -- -- -- --
Dave Simon
Director, Media Engineering and Operations
T +1.415.808.3594 | F +1.415.808.3535 | C +1.617.908.5043
600 Harrison St • San Francisco, CA • 94107
PRN | media where & when it matters
Posted on 02-17-2012 06:19 AM
Looking for this too! any ideas?
Posted on 02-17-2012 07:19 AM
here's a blog post about setting up a custom fact for this type of data:
http://puppetlabs.com/blog/facter-part-3-caching-and-ttl/
you can integrate facter with casper to get the same results.
Posted on 02-17-2012 07:52 AM
Rockpapergoat, u Rock.
I didn't check that link out yet but just knowing something is out there is great news!
How would I integrate into Casper?
Posted on 02-17-2012 09:06 AM
i would probably just start using facter and custom facts to use as extension attributes. that's what i'm planning, at least.
if you want, you could do something like this in lieu of using facter.
https://gist.github.com/1854372
to use that, be sure to install the rest-client ruby gem first. you don't need to require facter at all, since it's not really used. the example depends on the gem, network access, and will return a result suitable for use as an extension attribute -- in this case, the "city" attribute based on geoIP lookup.