{"action":"created","issue":{"url":"https://api.github.com/repos/biemond/biemond-oradb/issues/51","labels_url":"https://api.github.com/repos/biemond/biemond-oradb/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/biemond/biemond-oradb/issues/51/comments","events_url":"https://api.github.com/repos/biemond/biemond-oradb/issues/51/events","html_url":"https://github.com/biemond/biemond-oradb/issues/51","id":69106411,"number":51,"title":"error related to home directory during install on 11.2.0.3","user":{"login":"masterlf","id":11992078,"avatar_url":"https://avatars.githubusercontent.com/u/11992078?v=3","gravatar_id":"","url":"https://api.github.com/users/masterlf","html_url":"https://github.com/masterlf","followers_url":"https://api.github.com/users/masterlf/followers","following_url":"https://api.github.com/users/masterlf/following{/other_user}","gists_url":"https://api.github.com/users/masterlf/gists{/gist_id}","starred_url":"https://api.github.com/users/masterlf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masterlf/subscriptions","organizations_url":"https://api.github.com/users/masterlf/orgs","repos_url":"https://api.github.com/users/masterlf/repos","events_url":"https://api.github.com/users/masterlf/events{/privacy}","received_events_url":"https://api.github.com/users/masterlf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-17T09:50:21Z","updated_at":"2015-04-17T13:28:40Z","closed_at":null,"body":"Hello, I am using the module and notice some issues as you can see below. I believe that the home directory is not well set everywhere so that if /home/oracle is not used but /opt/oracle for instance, we some error appearing. you will find below my class and then the log going with:\r\n\r\n  ::oradb::installdb { '11.2.0.3_Linux-x86-64':\r\n    version                => '11.2.0.3',\r\n    file                   => 'p10404530_112030_Linux-x86-64',\r\n    databaseType           => 'SE',\r\n    oracleBase             => '/opt/oracle',\r\n    oracleHome             => '/opt/oracle/product/11.2/db',\r\n    user                   => 'oracle',\r\n    group                  => 'dba',\r\n    group_install          => 'oinstall',\r\n    downloadDir            => '/install',\r\n    remoteFile             => true,\r\n    puppetDownloadMntPoint => \"puppet:///modules/oradb/\",\r\n  }\r\n\r\n------\r\n\r\nNotice: oradb::installdb /opt/oracle/product/11.2/db does not exists\r\nNotice: /Stage[main]/Profile::Oracle::Server_11203/Oradb::Installdb[11.2.0.3_Linux-x86-64]/Notify[oradb::installdb /opt/oracle/product/11.2/db does not exists]/message: defined 'message' as 'oradb::installdb /opt/oracle/product/11.2/db does not exists'\r\nNotice: /Stage[main]/Profile::Oracle::Server_11203/Oradb::Installdb[11.2.0.3_Linux-x86-64]/Oradb::Utils::Dborainst[database orainst 11.2.0.3]/File[/etc/oraInst.loc]/ensure: created\r\nError: Could not set 'present' on ensure: No such file or directory - /home/oracle/.bash_profile20150417-10141-15kar6s.lock at 200:/etc/puppet/modules/oradb/manifests/installdb.pp\r\nError: Could not set 'present' on ensure: No such file or directory - /home/oracle/.bash_profile20150417-10141-15kar6s.lock at 200:/etc/puppet/modules/oradb/manifests/installdb.pp\r\nWrapped exception:\r\nNo such file or directory - /home/oracle/.bash_profile20150417-10141-15kar6s.lock\r\nError: /Stage[main]/Profile::Oracle::Server_11203/Oradb::Installdb[11.2.0.3_Linux-x86-64]/File[/home/oracle/.bash_profile]/ensure: change from absent to present failed: Could not set 'present' on ensure: No such file or directory - /home/oracle/.bash_profile20150417-10141-15kar6s.lock at 200:/etc/puppet/modules/oradb/manifests/installdb.pp\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/biemond/biemond-oradb/issues/comments/93985972","html_url":"https://github.com/biemond/biemond-oradb/issues/51#issuecomment-93985972","issue_url":"https://api.github.com/repos/biemond/biemond-oradb/issues/51","id":93985972,"user":{"login":"masterlf","id":11992078,"avatar_url":"https://avatars.githubusercontent.com/u/11992078?v=3","gravatar_id":"","url":"https://api.github.com/users/masterlf","html_url":"https://github.com/masterlf","followers_url":"https://api.github.com/users/masterlf/followers","following_url":"https://api.github.com/users/masterlf/following{/other_user}","gists_url":"https://api.github.com/users/masterlf/gists{/gist_id}","starred_url":"https://api.github.com/users/masterlf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masterlf/subscriptions","organizations_url":"https://api.github.com/users/masterlf/orgs","repos_url":"https://api.github.com/users/masterlf/repos","events_url":"https://api.github.com/users/masterlf/events{/privacy}","received_events_url":"https://api.github.com/users/masterlf/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T13:28:40Z","updated_at":"2015-04-17T13:28:40Z","body":"Hi \r\nactually i checked and i confirmed the presence of the prerequisite where my oracle user is defined with /opt/oracle as well as the installdb base parameter. still like you can see in the logs /home/oracle is called...\r\n\r\nif i am correct the issue might come from this piece of code where the home directory of the user is not really required but in my case i might have to redefine $userbasedir=/opt\r\n------------\r\ncode:\r\n\r\n    if ( $bashProfile == true ) {\r\n      if ! defined(File[\"${userBaseDir}/${user}/.bash_profile\"]) {\r\n        file { \"${userBaseDir}/${user}/.bash_profile\":\r\n          ensure  => present,\r\n          # content => template('oradb/bash_profile.erb'),\r\n          content => regsubst(template('oradb/bash_profile.erb'), '\\r\\n', \"\\n\", 'EMG'),\r\n          mode    => '0775',\r\n          owner   => $user,\r\n          group   => $group,\r\n        }\r\n      }\r\n    }\r\n\r\n------------\r\nlogs:\r\nError: Could not set 'present' on ensure: No such file or directory - /home/oracle/.bash_profile20150417-1298-b38wm5.lock at 200:/etc/puppet/modules/oradb/manifests/installdb.pp\r\nError: Could not set 'present' on ensure: No such file or directory - /home/oracle/.bash_profile20150417-1298-b38wm5.lock at 200:/etc/puppet/modules/oradb/manifests/installdb.pp\r\nWrapped exception:\r\nNo such file or directory - /home/oracle/.bash_profile20150417-1298-b38wm5.lock\r\nError: /Stage[main]/Profile::Oracle::Server_11203/Oradb::Installdb[11.2.0.3_Linux-x86-64]/File[/home/oracle/.bash_profile]/ensure: change from absent to present failed: Could not set 'present' on ensure: No such file or directory - /home/oracle/.bash_profile20150417-1298-b38wm5.lock at 200:/etc/puppet/modules/oradb/manifests/installdb.pp"}}