Advertisement
Guest User

Untitled

a guest
Jan 15th, 2014
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. [root@puppet manifests]# cat init.pp
  2. class filecheck {
  3.  
  4. case $operatingsystem {
  5. 'RedHat', 'Ubuntu': {
  6. file { "/opt": mode => directory, }
  7. notify { "The 'opt' directory exist for Ubuntu & Centos servers.": }
  8. }
  9. }
  10. }
  11.  
  12.  
  13. [root@puppet classes]# rake spec
  14. (in /etc/puppetlabs/puppet/modules/filecheck)
  15. /usr/bin/ruby -S rspec spec/classes/opt_spec.rb
  16. No examples found.
  17.  
  18. Finished in 0.00035 seconds
  19. 0 examples, 0 failures
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement