Project

General

Profile

0001-removed-deprecated-puppet-tfp-classes.patch

Patch removes files mentioned above - Gregory Etling, 06/27/2011 04:25 PM

View differences:

foreman/manifests/puppetca.pp
1
class foreman::puppetca {
2

  
3
  file{"/etc/puppet/autosign.conf":
4
    owner => $foreman_user, 
5
    group => "puppet",
6
    mode  => 644,
7
    require => User[$foreman_user],
8
  }
9

  
10
  myline {
11
    "allow_foreman_to_execute_puppetca":
12
      file => "/etc/sudoers",
13
      line => "${foreman_user} ALL = NOPASSWD: /usr/sbin/puppetca";
14
    "do_not_require_tty_in_sudo":
15
      file    => "/etc/sudoers",
16
      line    => "Defaults:${foreman_user} !requiretty";
17
  }
18

  
19
}
foreman/manifests/puppetrun.pp
1
class foreman::puppetrun {
2
  
3
  myline {
4
    "allow_foreman_to_execute_puppetrun":
5
      file => "/etc/sudoers",
6
      line => "${foreman_user} ALL = NOPASSWD: /usr/bin/puppetrun"
7
  }
8

  
9
}
foreman/manifests/tftp.pp
1
class foreman::tftp {
2
  $tftp_dir = "${foreman_dir}/tftp"
3

  
4
  file{$tftp_dir:
5
    owner => $foreman_user,
6
    mode  => 644,
7
    require => User[$foreman_user],
8
    ensure => directory,
9
    recurse => true,
10
  }
11

  
12
  file {"${tftp_dir}/default":
13
    content => "default local\ntimeout 20\n\nlabel local\nlocalboot 0\n",
14
    mode => 544, owner => root,
15
    require => File[$tftp_dir],
16
  }
17

  
18
}
19
-