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.

109 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
    Replies
    1. Osm! This post is very informative and effective. I got what I was looking for. Here to say thank you. Thanks for sharing FMWhatsapp valuable content.

      Delete
  2. feel regret I did not know this before I read your article.
    superfighters
    happy room

    ReplyDelete
  3. 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
  4. The ultimate goal of online sociology research paper writing services is to provide Sociology Assignment Writing Services and sociology essay writing services since most sociology term paper writing service students lack time to complete their custom sociology coursework writing services.

    ReplyDelete
  5. Thanks for this blog. It really provides awesome information to all readers. keep it up and keep posting these types of blogs on digital marketing services, it's really helpful.
    internal audit firms in india

    ReplyDelete
  6. 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

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


    Fm Whatsapp

    ReplyDelete
  8. 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

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

    ReciaiMe Recovery>

    ReplyDelete

  10. I hope this post is beneficial for viewers. Many thanks for the shared this informative and interesting post with us.
    wondershare-recoverit

    ReplyDelete
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. ProgDVB PROFESSIONAL CRACK is an excellent Post with Amazing content. All Mac and Windows users can download crack software from this PROSCRACK site.

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

    ReplyDelete
  18. 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
  19. 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
  20. Hi Dear, I really like your post. Its writing style is so amazing. Thank you for sharing it.

    Smadav Pro

    ReplyDelete
  21. 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
  22. It is really enjoyable to visit your website because you have such an amazing writing style.
    Your future writing will hopefully continue to be as well-written as this.

    Wondershare Recoverit

    ReplyDelete


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

    ReplyDelete
  24. 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
  25. 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


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

    ReplyDelete
  27. I am very impressed with your post because this post is very beneficial for me and provide a new knowledge… capture one pro 10 crack mac

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

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

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

    ReplyDelete
  31. 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
  32. 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
  33. Thank you for writing such a great informative article for today's modern readers. Two thumbs up for great content and interesting views.s
    easeus data crack

    ReplyDelete
  34. 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
  35. 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
  36. 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
  37. Such a great information for blogger i am a professional blogger thanks prokeysfree.com

    ReplyDelete
  38. 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
  39. This is very interesting, You’re a very skilled blogger. Also I have shared your website in my social networks!
    crack6

    ReplyDelete


  40. hi sir,Found your post interesting to read. I cant wait to see your post soon. Good Luck for the upcoming update.This article is really very interesting and effective thank you.
    windows 10 all in one iso x86/x64 activated



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

    ReplyDelete
  42. 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
  43. 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
  44. 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. adobe muse crack

    ReplyDelete
  45. 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
  46. 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
  47. 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
  48. 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
  49. IDM Crack

    grammarly-premium

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

    ReplyDelete
  50. 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
  51. 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
  52. ij.start.cannon setup process for every Canon model is almost similar, however the download through https //ij.start.cannon or http //ij.start.cannon and installation process may differ.

    canon.com/ijsetup is a website to download Canon printer drivers, you can also visit canonsetup-canon.com/ijsetup website for same.Some factors need to be in mind while choosing an inkjet printer for you. Later, you can easily set up your Canon printer through drivers from wireless connection, USB, and a few components.

    ReplyDelete
  53. It is really enjoyable to visit your website because you have such an amazing writing style.
    NoteBurner Spotify Music Converter

    ReplyDelete
  54. Your blog is so amazing and informative. This was an excellent article. Thank You for sharing it.
    Stellar Repair for Excel Crack

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

    ReplyDelete
  56. Your Blog is awesome. Really appreciate your work!
    Microsoft Word Crack is fantastic software for better business results. Provides the best services to its users.
    It also has a simple and user-friendly interface. I have been using it for a long time and it is the best.
    You can download it for free.

    ReplyDelete
  57. 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
  58. 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

  59. 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
  60. 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
  61. 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
  62. 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
  63. 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.
    This is my website.
    canon.com/setup
    canon.con/setup
    canon. com/setup
    www.canon.com/ijsetup
    cricut.com/setup
    cricut.com setup
    cricut.com/setup maker
    www.cricut.com/setup

    ReplyDelete
  64. Thanks for taking the time to discuss and share this with us, I for one feel strongly about it and really enjoyed learning more about this topic. I can see that you possess a degree of expertise on this subject, I would very much like to hear much more from you on this subject matter – I have bookmarked this page and will return soon to hear additional information about it. There are certainly impressive stories. Passion for sharing your website with us. You’re doing a great job Man, Keep it up.

    canon.com/setup
    canon.con/setup
    canon. com/setup
    www.canon.com/ijsetup
    cricut.com/setup
    cricut.com setup
    cricut.com/setup maker
    www.cricut.com/setup

    ReplyDelete
  65. 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
  66. 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
  67. If you like Bollywood and Hollywood, web series or any other means of entertainment other than this. And apart from this, downloading movies from any website and watching them for free, if you do this, then this post is going to provide great information for you. Through this post you are going to get information about the Afilmywap Website.Many people are so fond of entertainment that they download movies from any website available on the Internet and watch them for free. Most of the people who watch and download movies must be aware of the Afilmy wap website. Because most people download Bollywood and Hollywood movies from such websites and watch them for free.Sites like afilmywap are providing movies to the people for free. Because from here many people can download Bollywood, Hollywood, Tollywood, Bollywood, and other language movies for free through the Internet.

    ReplyDelete
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. 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
  74. Disney Plus is a subscription-based streaming service that aims to deliver the Disney experience to an entire family. The service offers a variety of content from Marvel, Star Wars, Pixar and Disney movies and TV shows. To watch the disneyplus.com/begin on your device, you need to activate it or install it on that device. This service allows you to stream live TV shows, sports, and videos. Disney also will enable you to purchase new movies. It streams many movies, tv shows, news, sports web series, and newly released shows. Even Disney releases its own animated movies on the Disney plus begin.

    ReplyDelete
  75. The Cricut setup or the Cricut Machine is an electric tool designed to cut various material like iron-on transfers, paper and vinyl. The Cricut machine is called the die-cutting Machine and can cut leather and wood. If you've purchased the Cricut maker but are unable to get it set up and you're not sure how to set it up, you're at the right spot. The website Cricut.com/setup can help you setup the Cricut machine. This is due to the subscription process and uploading the file or design you wish to use for your project. The cricut design space machine is made to cut vinyl, paper and a variety of other materials into different designs. The Cricut machine is extremely useful in architecture and for work on projects.

    ReplyDelete
  76. 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
  77. Thank you very much for this useful article. I like it. ทางเข้าเล่น 123plus

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

    ReplyDelete
  79. 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. There 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.


    Cricut.com/Setup
    Cricut.com/Setup
    Cricut.com/Setup
    Cricut.com/Setup
    Cricut.com/Setup
    Cricut.com/Setup
    Cricut.com/Setup
    Cricut setup windows

    ReplyDelete
  80. I must say it is very informative as well as interesting. Thanks to the author of this post/page for writing such wonderful lines. tuneboto-amazon-video-downloader-crack/

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

    ReplyDelete
  82. Hello! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche. Your blog provided us useful information to work on. You have done an outstanding job.

    Cricut.com/Setup
    Cricut.com/Setup
    Cricut.com/Setup
    Cricut.com/Setup
    Cricut.com/Setup
    Cricut.com/Setup
    Cricut.com/Setup
    Cricut setup windows

    ReplyDelete
  83. 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
  84. 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
  85. 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
  86. 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
  87. 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
  88. Latest in-game news about free fire on new 2.0 free fire portal

    ReplyDelete
  89. 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
  90. 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
  91. 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