Fixed DSL graph dependencies and wrapper scripts
[oracle_puppet.git] / modules / oracle / manifests / virt_users.pp
blob2decef5d62d4740995a04397febf733a784d3bfe
2 # Copyright (C) 2009 Jeremy Baumont
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 class oracle::virt_users {
19 @user { oracle:
20 ensure => present,
21 uid => 4001,
22 gid => "dba",
23 groups => [ "oinstall" , "other" ],
24 comment => "Oracle Application User",
25 home => "/users/oracle",
26 require => [
27 Group["dba"],
28 Group["oinstall"]
29 ] ,
30 shell => "/usr/bin/bash",
33 file {
34 "/users/oracle/":
35 ensure => directory,
36 mode => 0750, owner => oracle, group => dba;
37 "/users/oracle/.bashrc":
38 source => "$fileserver/users/oracle/.bashrc",
39 ensure => present, replace => true,
40 mode => 0640, owner => oracle, group => dba;
41 "/users/oracle/.bash_profile":
42 source => "$fileserver/users/oracle/.bash_profile",
43 ensure => present, replace => true,
44 mode => 0640, owner => oracle, group => dba;
45 "/users/oracle/.ssh":
46 ensure => directory,
47 mode => 0700, owner => oracle, group => dba;
48 "/users/oracle/.ssh/authorized_keys":
49 source => "$fileserver/users/oracle/.ssh/authorized_keys",
50 ensure => present, replace => true,
51 mode => 0600, owner => oracle, group => dba;
52 # "/users/oracle/.ssh/config":
53 # source => "$fileserver/users/oracle/.ssh/config",
54 # mode => 0600, owner => oracle, group => dba;