Thursday, August 1, 2013

puppet augeas and sudo

I wanted to configure some sudo rules using puppet.


The default sudo config has an directory called /etc/sudoers.d which makes dropping in the actual entries rather easy:

file { "/etc/sudoers.d/example" :
        ensure => present,
        owner => 'root',
        group => 'root',
        mode => 0440,
        content => template('example/sudo.erb'),
}


but alas, the default RHEL6 sudo has requiretty set which prevented my sudo rules from working correctly.

Naturally I wanted to use augeas to remove that flag but it turned into a nightmare trifecta of puppet + augeas + sudo. Three tools with so much potential and a great lack of real world documentation.


I remember having battled with this before and giving up. This time I was determined to succeed. I revisited the only information on the internet but I still could not get it to work. After looking at the code for the sudo lens I was pretty sure that I had the correct version and eventually I was pointed in the right direction. Instead of removing the requiretty I needed to negate it. After some more mucking around I came up with a working incantation:

augeas { "turn off sudo requiretty":
        changes => [
                'set /files/etc/sudoers/Defaults[*]/requiretty/negate ""',
        ],
}


I hope that will be of use to someone.

83 comments:

  1. This is also a very good post which I really enjoyed reading. It is not everyday that I have the possibility to see something like this.
    Sushi Cat 2

    ReplyDelete
  2. Hi, Generally I use templates to maintain sudoers, but I tried to implement in augeas just to understand augeas better and also it worked for few ...

    download for android

    ReplyDelete
  3. Acquiring a shelf company in Cyprus is usually a simple and quick process. Companies that specialize in the sale of shelf companies offer full service. This means that, along with the company itself, they will have complete company documents, a company secretary, a registered office, nominated shareholders and directors, a company bank account with internet banking and debit cards, a sales tax identification number and even support in the first year of operation if necessary. http://www.confiduss.com/en/info/blog/article/shelf-company-cyprus/

    ReplyDelete
  4. Wonderful information! I found amazing information on the blogs i suggest everyone to follow the links below to get download files from this website.Process Monitor crack

    ReplyDelete

  5. This was an excellent article. Thank you for sharing it.

    ReciaiMe Recovery>

    ReplyDelete
  6. Literary, the currency of New World MMO - MMORPG game by Amazon Game Studios. Due to WoW, some players still confuse these and call them New World Gold, it is not even coin but singular New World Coin, no matter how many you have. Amazon New World Coins are used in the game as real money are used in the world, to buy and purchase literary anything worthwhile, from basic food/water, gems, gear, trade, various upgrade.

    ReplyDelete
  7. Depending on the brand of your computer, this can be a simple or complex question. Replacing a laptop or laptop power supply is usually the simplest and easiest, but you should see what options you have for your device. https://www.immigration-residency.eu/residence-permit-latvia/real-estate/

    ReplyDelete
  8. Since 1996, Bluehost has grown to become one of the worlds' leading web hosting solutions companies through innovative technology and legendary 24/7 Bluehost Coupon

    ReplyDelete
  9. Thanks for taking the time to discuss this, I feel strongly about this and so really like to get more about this kind of field. Wonderful stuff to read and I am so delighted to find this valuable article that is amazing.
    Windows 7 Ultimate Activator

    ReplyDelete
  10. hi Dear, Thank you for sharing your details and experience. I think it very good for me. Keep it up! Also May you like AutoCAD 2016 Crack

    ReplyDelete
  11. ProgDVB PROFESSIONAL CRACK is an excellent Post with Amazing content. All Mac and Windows users can download crack software from this PROSCRACK site.

    ReplyDelete
  12. That's an outstanding piece of work!I look forward to seeing more!
    manager patch

    ReplyDelete
  13. Hey, that's a great website! Thanks. Great job. Excellent .. I'm bookmarking your site and I'm taking the feeds also
    ...I am happy to find out so many useful details right here.
    Windowsloader

    ReplyDelete
  14. Wonderful information! I found amazing information on the blogs i suggest everyone to follow the links below to get download files from this website. crackcool.com

    ReplyDelete
  15. I discovered your blog site on google and check a few of your early posts. Continue to keep up the very good operate. I just additional up your RSS feed to my MSN News Reader. Seeking forward to reading more from you later on!…

    Webplace.us
    Information
    Click Here
    Visit Web

    ReplyDelete


  16. I hope this post is beneficial for viewers. Many thanks for the shared this informative and interesting post with us.
    appspider-pro

    ReplyDelete
  17. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to Download Cracked Pro Softwares But thankfully, I recently visited a website named vstfull.com
    ProgDVB Professional Crack
    Avid Pro Tools Crack
    Jaf Box Crack

    ReplyDelete
  18. wondering article, it is a very good Sudo lens code, I was pretty sure that I had the correct version, and eventually, I was pointed in the right direction. very nice instruction code. Thanks for sharing this Linux code. whatsapp mod

    ReplyDelete


  19. hello sir,Really amazing work keep doing and keep spreading the information , like your post .daemon tools lite serial number txt

    ReplyDelete
  20. kick off, get the show on the road, get to it, cinema crack

    ReplyDelete
  21. daum potplayer In this page you can discover 23 synonyms, antonyms, idiomatic expressions, and related words for which, like:

    ReplyDelete
  22. bartender crack
    "I have started" means that whatever you started is still in the process of happening.

    ReplyDelete
  23. Really useful information, I've seen on the internet, need something like this more from more people posted. Keep posts like this.
    CyberLink PowerDVD Crack

    ReplyDelete
  24. darkwave studio download is music that suits your customers. “ASIO supports
    audio drivers and VST plugins, we can use many musical instruments. Dark View Studio is the most interesting work to
    create and edit pattern editors, drag and drop

    ReplyDelete
  25. Thanks for Sharing such an amazing article. Keep working... Your Site is very nice, and it's very helping us.. this post is unique and interesting, thank you for sharing this awesome information DLL files fixer keygen

    ReplyDelete
  26. Nice information. I’ve bookmarked your site, and I’m adding your RSS feeds to my Google account to get updates instantly. Avast Cleanup Premium Crack

    ReplyDelete
  27. What a fantastic blog! I enjoy reading your posts. Good luck with your paintings! Thanks for reading!
    You could be of great assistance to a lot of people who are searching for this information.
    FullKeygens

    ReplyDelete
  28. Such a great information for blogger i am a professional blogger thanks prokeysfree.com

    ReplyDelete
  29. Your post is based on informational things. This is very useful for me and I think your post is also useful for the world. Keep working hard if you want to advance in the future. Thanks again for the great post.
    advanced systemcare ultimate 11 serial key

    ReplyDelete
  30. This is very interesting, You’re a very skilled blogger. Also I have shared your website in my social networks!
    crack6

    ReplyDelete
  31. Your post style is super Awesome and unique from others I am visiting the page I like your style.
    Jungle Scout Chrome Extension

    ReplyDelete
  32. Nice blog you have done as worldforcrack
    a lot of work.full-cracked
    Thanks for giving an opportunity for giving us a review.
    3dmark hall of fame
    what is winzip 19.5

    ReplyDelete
  33. MalaysiaAssignmentHelp.com proves to be the best website providing thesis writing help in Malaysia for college students. Our thesis writing makes the world of difference in quality through their in-depth research.
    thesis writer Malaysia

    ReplyDelete
  34. Linus is the best software for all. Thanks for sharing this with ua, And Also The New Features & Tool Of GBWhatsapp APK Has Arrived Of Year 2022 !! Get It Now -


    GBWhatsapp APK 2022


    ReplyDelete
  35. You write in such an amazing style and I really enjoy visiting your website. I hope you'll continue to write like this in the future.
    photofiltre studio x key

    ReplyDelete
  36. You have a great blog here! would you like to make some invite posts on my blog?

    Techrum.vn
    Information
    Click Here
    Visit Web

    ReplyDelete
  37. You write in such an amazing style and I really enjoy visiting your website. I hope you'll continue to write like this in the future.
    https://cracksbuddy.com/grammarly-premium/
    https://cracksbuddy.com/winthruster-crack/
    https://cracksbuddy.com/dll-files-fixer-premium-crack/
    https://cracksbuddy.com/

    ReplyDelete
  38. IDM Crack

    grammarly-premium

    Winthruster Crack
    You write in such an amazing style and I really enjoy visiting your website.

    ReplyDelete
  39. This software is also very well because I have been using the Avast Premier for a long time now and i suppose this tool to be the best in its ranks.
    Thanks for your info and share and Very helping. Nice post. Thanks for sharing such an excellent info.
    For more information you can check out these links.
    https://cracksbuddy.com/
    https://cracksbuddy.com/avast-premier/
    https://crackonly.net/avast-cleanup-premium-crack-download/
    https://crackonly.net/tune-sweeper-activation-code-crack-download/

    ReplyDelete
  40. This Software is a very good software.. Like CoralDraw Corel Draw X8 Serial Key is a powerful and innovative illustration software. It can also be used to confidently accomplish exceptional results. Corel Draw X8 Free Download Full Version With Crack is the most important portion of the tools....https://crackonly.net/corel-draw-x8/
    https://crackonly.net/corel-draw-x7/
    https://crackonly.net/corel-draw-x5/

    ReplyDelete
  41. Great information on your blog. Thank you for sharing with us. It's nice to find this website.
    ฝากจอดรถยนต์อุบล

    ReplyDelete
  42. This is an excellent blog. Continue to share. I adore them. Are you looking for a low-cost assignment writing service as well? For you, we are the best option. We are well-known for providing students with low-cost tasks that do not require them to break their wallets.

    Disneyplus.com/Begin
    Disneyplus.com login/Begin
    Disney plus Begin Code

    Disneyplus.com login/Begin verification Code

    ReplyDelete
  43. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
    Very interesting blog.
    IZotope Ozone Crack
    JetBrains ReSharper Crack
    PrivateVPN Crack

    ReplyDelete

  44. This is an excellent blog. Continue to share. I adore them. Are you looking for a low-cost assignment writing service as well? For you, we are the best option. We are well-known for providing students with low-cost tasks that do not require them to break their wallets. Disneyplus.com/Begin
    Disneyplus.com/Begin

    ReplyDelete
  45. Interesting Blog! Appreciate your work.
    Kaspersky Internet Security has amazing features for its users. The company delivered a perfect product for its user. Anyone can use it because of its user friendly interface. You can Download it from our Website.

    ReplyDelete
  46. Garena Free Fire is launching a new weapon or the Next weapon, incubator and Diamond Royale for the players. The information regarding the Next weapon, incubator and Diamond Royale release date is given below.
    Free fire Next weapon Diamond Royale 2022

    Diamond Royale Section

    ReplyDelete
  47. Your website has a lot of useful knowledge. I’m so thankful for this website.
    I hope that you continue to share a lot of knowledge.

    cricut.com/setup
    cricut.com setup
    cricut.com/setup maker
    www.cricut.com/setup

    ReplyDelete
  48. Today, you will learn the setup process, Creating the Cricut Id, downloading and installing the Cricut machine, and setting up the machine physically. So let’s start it.

    Cricut.com/Setup
    cricut.com setup
    cricut.com/setup maker
    cricut.com/setup mug press

    ReplyDelete
  49. There are certainly impressive stories. Passion for sharing your website with us. You’re doing a great job Man, Keep it up. We are here to examine the means to fix a situation where clients face issues while specialized help.

    Cricut.com/Setup
    cricut.com setup
    cricut.com/setup maker
    cricut.com/setup mug press

    ReplyDelete
  50. Hbomax is the go-to stage for the vast majority to watch videos in today’s generation. Whether you want to watch informative tutorials, or movies, or even web series, Hbomax has it, and henceforth, it is the most mainstream video support and the real time website as of date. While you can watch Hbomax on any cell phone as long it has video support and a web association just as on computers that have an supported web browser with a internet connectivity. watching Hbomax on TV is an alternate extravagance. Hbomax support on smart TVs is a gift for everybody. for using all facilities of hbomax Go to hbomax com tvsignin and click the Sign Up link.

    ReplyDelete
  51. Go to web Browser and type hbomax/tvsignin in your TV and then click on the signal in choice. Enter the code screen on your TV, and choose next. Pick to hbomax com tvsignin using a TV or cellular operator. Select your supplier from the listing. Enter the username and password to your provider account such as HBO Max. Input or confirm your name and email and choose Create Account. Whenever your TV upgrades, select who is watching and you are prepared to utilize HBO max.

    ReplyDelete
  52. It's a platform offered by WarnerMedia that features 10,000 hours of premium content bundling all of HBO together with even more movies, hbomax.com/tvsignin shows and Max Originals for the whole family,including Friends,South Park,The Big Bang Theory,Wonder Woman,the Studio Ghibli collection, and more.

    ReplyDelete
  53. FOX NOW allows you to stream your favorite FOX programs live or on-demand. Log in using your TV provider credentials to download the app and watch full episodes.Open Foxnews.com/connect NOW and click "Activate TV".The activation code will appear on the screen.Open a browser on either your mobile phone or personal computer.

    ReplyDelete
  54. Disney Plus is one of the best-known streaming services in the world. You can browse a full collection of Disney classics, as well as your latest favorite Disney movies. Disneyplus.com/begin
    Code which is an additional subset of Hotstar is an image of Hotstar. Disney Hotstar offers a wide selection of movies, TV series and news in addition to sports.

    ReplyDelete
  55. Now playing on Plex. Our massive library of ad-supported movies and shows is available on demand, 24/7. Start watching now, no payment or subscription required. plex.tv/link Enjoy over 50,000 on-demand titles and hundreds of live TV channels, plus your own personal media collection, using one powerful app.

    ReplyDelete
  56. The Aka.Ms/remoteconnect screen notification is usually a cross-play issue that appears when a PS4, Xbox, or Nintendo Switch user cannot play Minecraft with their friends on different platforms or consoles. An "Auto Login" error message, like the one pictured above, is displayed to the user every https://Aka.Ms/RemoteConnect time they try to access their Minecraft account, and the user must manually log back into their account Microsoft to link its Minecraft. with their Microsoft account.

    ReplyDelete
  57. Thank you very much for this useful article. I like it. ทางเข้าเล่น 123plus

    ReplyDelete
  58. CafeCrackPDFelement Crack this tool, you can create an interactive form field and recognize the form field automatically. Wondershare s. fitpcgames

    ReplyDelete
  59. Many thanks for sharing this informative and interesting post with us.drawboard-pdf-crack/

    ReplyDelete
  60. I must say it is very informative as well as interesting. Thanks to the author of this post/page for writing such wonderful lines. magix-samplitude-pro-x6-suite-crack/

    ReplyDelete
  61. Rand McNally devices are considered the most user-friendly, easy software-based gps devices. It can update its very easy to use and easy. Rand McNally comes with various gps devices like handheld gps, tablet gps, and in-dash rand McNally. The best part about the rand McNally gps is that every device will update with the same process and software. No matter what rand McNally gps unit you have, they can be updated with the same software. The rand McNally software updater provides updates on an annual basis. It provides three types of updates: Map updates, software updates, and Traffic updates.

    ReplyDelete
  62. You've offered a couple of liberal articulations there. I looked on the web for extra data about the issue and observed a wide number people will oblige your perspectives on this webpage page. digital news

    ReplyDelete
  63. Ideal for beginners and established composers alike, this industry standard product is the perfect place to start your movie recording journey.spitfire albion one crackthe legendary producer of the Beatles. His living room has been the choice of Hollywood directors for decadesserum crackThe original concept for Albion was simple: everything the music needed for the film was required in one product. spectrasonics omnisphere crackThe orchestra was recorded at Air Studios in London best cleanser for combination skin where many Hollywood blockbuster movie soundtracks were recorded best gaming monitors under 250

    ReplyDelete
  64. Yet another fantastic value based article based on research, and I think all the tips are the result of learning through experience, that's why they are so much valuable for the readers.dvdvideosoft crackfreeacrylic wifi professional crackandpolyboard crackdownloadpassfab crackThere are many mechanisms that run behind the Cricut machine. Among these, we have some of the proceeding steps which will take you to the finalization of working the Cricut maker machine.

    ReplyDelete
  65. Latest in-game news about free fire on new 2.0 free fire portal

    ReplyDelete
  66. The Formation of content is very good, a great example of writing skills. Thank you for sharing.You can also check mine Wing FTP Server Corporate Crack


    ReplyDelete
  67. Peryourhealth is an online medical billing service that helps patients pay their medical bills. It is a healthcare-specific billing service that has a simple and easy to use interface.
    List of Website @
    https://per-you-health.com/
    https://wwwperyourhealth.online/
    https://sites.google.com/view/www-peryourhealth--com/home

    ReplyDelete
  68. Awesome post.Very useful information. I am glad that you shared this useful information with us. Thanks for sharing.
    Paint Tool Sai Serail key/
    Crack Warez

    ReplyDelete
  69. want to see you your article is good i want to talk to you. CBSE Schools In Alwar

    ReplyDelete
  70. Looking for Powerlifting Coaches Georgetown TX? Look no further! Our team of experienced coaches is here to help you reach your powerlifting goals. Whether you're a beginner or an experienced lifter, we have the knowledge and expertise to help you improve your technique, increase your strength, and achieve your personal best.

    ReplyDelete