{"action":"created","issue":{"url":"https://api.github.com/repos/hajee/oracle/issues/60","labels_url":"https://api.github.com/repos/hajee/oracle/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/hajee/oracle/issues/60/comments","events_url":"https://api.github.com/repos/hajee/oracle/issues/60/events","html_url":"https://github.com/hajee/oracle/issues/60","id":60506219,"number":60,"title":"Error: undefined method `chop' for nil:NilClass","user":{"login":"carroarmato0","id":1828645,"avatar_url":"https://avatars.githubusercontent.com/u/1828645?v=3","gravatar_id":"","url":"https://api.github.com/users/carroarmato0","html_url":"https://github.com/carroarmato0","followers_url":"https://api.github.com/users/carroarmato0/followers","following_url":"https://api.github.com/users/carroarmato0/following{/other_user}","gists_url":"https://api.github.com/users/carroarmato0/gists{/gist_id}","starred_url":"https://api.github.com/users/carroarmato0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carroarmato0/subscriptions","organizations_url":"https://api.github.com/users/carroarmato0/orgs","repos_url":"https://api.github.com/users/carroarmato0/repos","events_url":"https://api.github.com/users/carroarmato0/events{/privacy}","received_events_url":"https://api.github.com/users/carroarmato0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-10T14:19:43Z","updated_at":"2015-03-10T15:07:12Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to use the following to define a disk in ASM (doesn't look like its usage is documented, so I tried figuring out by looking at the rb code for the parameters) :\r\n\r\n<pre>\r\nora_asm_volume {'disk':\r\n  volume_device => '/dev/sdb',\r\n  volume_name  => 'DISK1',\r\n  diskgroup         => 'DATA',\r\n}\r\n</pre>\r\n\r\nThis returns the following:\r\n\r\n<pre>\r\n==> oracle12asm: Notice: Compiled catalog for oracle12asm.vagrantup.com in environment production in 1.32 seconds\r\n==> oracle12asm: Error: undefined method `chop' for nil:NilClass\r\n</pre>\r\n\r\nUsing    ruby 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux]   with Puppet 3.7.2 (Puppet Enterprise 3.7.0)\r\n"},"comment":{"url":"https://api.github.com/repos/hajee/oracle/issues/comments/78073277","html_url":"https://github.com/hajee/oracle/issues/60#issuecomment-78073277","issue_url":"https://api.github.com/repos/hajee/oracle/issues/60","id":78073277,"user":{"login":"hajee","id":20322,"avatar_url":"https://avatars.githubusercontent.com/u/20322?v=3","gravatar_id":"","url":"https://api.github.com/users/hajee","html_url":"https://github.com/hajee","followers_url":"https://api.github.com/users/hajee/followers","following_url":"https://api.github.com/users/hajee/following{/other_user}","gists_url":"https://api.github.com/users/hajee/gists{/gist_id}","starred_url":"https://api.github.com/users/hajee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hajee/subscriptions","organizations_url":"https://api.github.com/users/hajee/orgs","repos_url":"https://api.github.com/users/hajee/repos","events_url":"https://api.github.com/users/hajee/events{/privacy}","received_events_url":"https://api.github.com/users/hajee/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T15:07:11Z","updated_at":"2015-03-10T15:07:11Z","body":"You are right, it isn't well documented. We are still working on this. The syntax is:\r\n\r\n```puppet\r\n  ora_asm_volume{\"${disk_group_name}:${volume_name}@+ASM1\":\r\n    size            => $size,\r\n    volume_device   => $mount_point,\r\n  }\r\n```\r\n\r\nSo in your case this will likely be:\r\n```puppet\r\nora_asm_volume {'DATA/DISK1@+ASM1':\r\n  volume_device => '/dev/sdb',\r\n  size              => '10G',\r\n}\r\n```\r\n"}}