Error message

The spam filter installed on this site is currently unavailable. Per site policy, we are unable to accept new submissions until that problem is resolved. Please try resubmitting the form in a couple of minutes.

puppet nfs export with augeas

I wanted to be able to define nfs shares with puppet and have puppet take care of the exports line and exportfs. I found this page, but I didn't like that there was perl code thrown in the midst. I rewrote it to use an inline template instead.

The code is up on github at github.com/uphillian/puppet-nfsshare

The main difference is using an inline template to create the options to set.

$options_set = inline_template("<% nfsopts.each do |opt| -%>set dir[.= \"<%= @nfsshare %>\"]/client[.=\"<%= @nfsaccess %>\"]/option[.=\"<%= opt %>\"] <%= opt%>\n<% end %>")

Add new comment

Markdown

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.