Ask Your Question
0

sudo config based on hostnames instead of OS type?

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

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

Comments

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

golja gravatar imagegolja ( 2013-10-29 02:25:39 -0500 )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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

asktbt gravatar image

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

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

Stats

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

Seen: 85 times

Last updated: Oct 29 '13