Guest User

Untitled

a guest
Jan 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. # Basic Puppet Apache manifest
  2.  
  3. class apt {
  4. exec { "/usr/bin/apt-get update --fix-missing":
  5. path => "/usr/bin"
  6. }
  7. }
  8.  
  9. class lucid32 {
  10.  
  11. package {"puppet":
  12. ensure => present,
  13. }
  14.  
  15. package { "apache2":
  16. ensure => present,
  17. }
  18.  
  19. service { "apache2":
  20. ensure => running,
  21. require => Package["apache2"],
  22. }
  23. }
  24.  
  25. # Run Stages
  26. stage {"pre": before => Stage["main"]}
  27.  
  28.  
  29. class {'apt': stage => 'pre'}
  30.  
  31. include lucid32
Add Comment
Please, Sign In to add comment