Class: ShadowPuppet::Manifest::Setup

Inherits:
ShadowPuppet::Manifest show all
Defined in:
lib/shadow_puppet.rb

Instance Attribute Summary

Attributes inherited from ShadowPuppet::Manifest

#puppet_resources

Instance Method Summary collapse

Methods inherited from ShadowPuppet::Manifest

#executable?, #execute, #initialize, #name, #options, puppet_type_methods, recipe

Constructor Details

This class inherits a constructor from ShadowPuppet::Manifest

Instance Method Details

#setup_directoriesObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/shadow_puppet.rb', line 6

def setup_directories()
  if Process.uid == 0
    file "/var/puppet",
      :ensure => "directory",
      :backup => false
  else
    file ENV["HOME"] + "/.puppet",
      :ensure => "directory",
      :backup => false
    file ENV["HOME"] + "/.puppet/var",
      :ensure   => "directory",
      :backup   => false,
      :require  => file(ENV["HOME"] + "/.puppet")
  end
end