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 {
23 groups
=> [ "oinstall" , "other" ],
24 comment
=> "Oracle Application User",
25 home
=> "/users/oracle",
30 shell
=> "/usr/bin/bash",
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
;
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;