aririikonen / oracle

Full Oracle cookbook for Chef. Please see the README.md for further details.
http://oraarir.blogspot.fi/
44 stars 50 forks source link

If I want to create default database instence in attributes without define json,how to define in attributes file #5

Open guitarhelo opened 9 years ago

guitarhelo commented 9 years ago

default[:oracle][:rdbms][:dbs] = {} ?

dsp-eoss commented 9 years ago

The syntax to specify the value is the same as that you'd use in JSON:

default[:oracle][:rdbms][:dbs] = {"FOO": false}

That being said, I recommend you do not edit the attributes file directly, as this would complicate maintenance if you want to keep in sync with us. I'd suggest you create e.g. a role instead, and declare the attribute there.

The READMEexplains how database creation works (look under the createdb heading), and there's a comment about it in the default.rbattributes file as well. If you feel that doc isn't clear/good enough, please tell us, and we'll get it fixed :-)