facebook / chef-utils

Utilities related to Chef
Apache License 2.0
291 stars 79 forks source link

Make fb_sysctl work under chef12 #46

Closed chantra closed 9 years ago

chantra commented 9 years ago

Without that FB::FBSysctl.sysctl_in_sync? was not found. Pretty much #dogsciencing this

jaymzh commented 9 years ago

What? this works just fine in 12... all classes in libraries are available in the recipe DSL.

chantra commented 9 years ago

Well, this is what happen when using it from a recipe that has the following content: include_recipe 'fb_sysctl' node.default['fb']['fb_sysctl']['net.ipv4.tcp_syncookies'] = '1'

https://gist.github.com/chantra/ca72f12880cd270e93c1

jaymzh commented 9 years ago

OK, so we didn't namespace it in the internal version. Let me try to get our internal in sync with this and test again.

jaymzh commented 9 years ago

OK, I can repro this. Can you instead do this:

You won't need the send at that point, it'll all just work.

Thanks.

jaymzh commented 9 years ago

(I'm also happy to do my own PR for that if you prefer, but I figured you'd rather do it)

chantra commented 9 years ago

@jaymzh yeah, I am good doing it.

jaymzh commented 9 years ago

Thanks!