On Thu, Nov 22, 2012 at 04:18:02AM -0800, Gavin Williams wrote: > Ok, I've come back to this functionality, and need to move it along... > > My challenge now is how I can use the oratab resource to trigger other > actions... > > So if oratab creates a new entry in /etc/oratab, then I want to ideally > call a define which will go away and create the require directory > structure, mount NFS volumes and add details to fstab... > > Any ideas??? > > Cheers > Gavin
Why do you need the resource to "trigger" anything? I guess you are already using puppet to define your instances so you can do something like define oracle::instance($home, ...) { # some instance specific subdirectory file { "/u01/app/oracle/admin/${name}": ensure => directory} } # some instance specific mount mount { ...${name}: ensure => mounted, } file { "responsefile_for_${name}": ensure => file, content => template("responsefile.cfg.erb", } exec { "install_db_${name}" command => 'some_wrapperscript_around_dbca_to_install_instance_with_responsefile', creates => 'some_flagfile_the_wrapperscript_creates_on_success', require => File["responsefile_for_${name}"], } oratab { $name: ensure => present, home => $home, atboot => yes, } } -Stefan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.