Created
February 28, 2013 16:28
-
-
Save raphink/5057976 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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