Skip to content

Instantly share code, notes, and snippets.

@raphink
Created February 28, 2013 16:28
Show Gist options
  • Save raphink/5057976 to your computer and use it in GitHub Desktop.
Save raphink/5057976 to your computer and use it in GitHub Desktop.
rpinson@wrk4:~/bas/puppet/augeas$ ls
fakemodule puppet-stdlib
rpinson@wrk4:~/bas/puppet/augeas$ cat fakemodule/manifests/init.pp
class fakemodule {
notify { 'foo':
message => augeas("proc /proc proc nodev,noexec,nosuid 0 0\n", 'Fstab.lns', ['rm ./1/opt[3]']),
}
}
rpinson@wrk4:~/bas/puppet/augeas$ RUBYLIB=/var/lib/gems/1.8/gems/ruby-augeas-0.4.1/lib puppet apply -e 'include fakemodule' --modulepath .
notice: proc /proc proc nodev,noexec 0 0
notice: /Stage[main]/Fakemodule/Notify[foo]/message: defined 'message' as 'proc /proc proc nodev,noexec 0 0
'
notice: Finished catalog run in 0.01 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment