Ask Your Question

sudo config based on hostnames instead of OS type?

asked 2013-10-28 23:42:44 -0600

alags gravatar image

Current sudo module file syncing is based on the OS type, I want to do it based on hostnames like for app servers, db servers specific sudo file. Can you assist me in setting the customized sudo based on hostnames?

edit retag flag offensive close merge delete


Which sudo module ? There are few of them available on puppet forge.

golja gravatar imagegolja ( 2013-10-29 02:25:39 -0600 )edit

I tried the module saz/sudo . Also if any other sudo module supports hostname based configuration sync please share.

alags gravatar imagealags ( 2013-10-29 04:59:32 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-10-29 02:34:35 -0600

asktbt gravatar image

updated 2013-10-29 02:36:22 -0600

I'm not sure how your hostname structure is setup within your network or your puppet configuration. One possible way to do this (depending on your setup, ofc) is via the saz/sudo module.

With a pretty simple setup you can use the node matching via Regular expressions and that way deploy your configuration to the nodes.

This might - however - limit you in your future growth and expanding of the configuration. Today I'd probably use roles and profiles or an ENC (external node classifier) like Hiera.

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


Asked: 2013-10-28 23:42:44 -0600

Seen: 87 times

Last updated: Oct 29 '13