Last active
          December 11, 2015 21:48 
        
      - 
      
- 
        Save scottslowe/4664664 to your computer and use it in GitHub Desktop. 
    Entirely fictional Puppet code to show dependencies on single resources
  
        
  
    
      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
    
  
  
    
  | class foo { | |
| package { 'foo': | |
| ensure => 'present', | |
| } | |
| file { '/etc/foo.conf': | |
| ensure => 'present', | |
| source => 'puppet:///modules/foo/foo_conf', | |
| mode => '0600', | |
| require => Package['foo'], | |
| } | |
| service { 'foo': | |
| ensure => 'running', | |
| require => File['/etc/foo.conf'], | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment