I believe the error is saying that using: mode => 755,
inside the exec doesn't make sense. It's not a file resource, exec doesn't specify a mode. -- Nathan Clemons http://www.livemocha.com The worlds largest online language learning community On Tue, Jun 28, 2011 at 11:01 AM, Craig White <craig.wh...@ttiltd.com>wrote: > I think that the heat must be affecting me because this seems so simple but > it's eluded me for too long now. > > What I am trying to do is create a symlink from one directory to another > AFTER the package is installed. > > The error: > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Invalid parameter mode at > /etc/puppet/modules/firebird/manifests/service.pp:17 on node ubuntu2.ttinet > > Which I gather means that it can't create the symbolic link to a directory > that doesn't exist yet but it could be my syntax and I have > checked/rechecked/simplified but still... > > class firebird::install { > package { "firebird2.1-classic": > name => "firebird2.1-classic", > ensure => installed, > # require => Class["firebird::configure"], > notify => Class["firebird::service", "firebird::configure"], > } > package { "firebird2.1-dev": > name => "firebird2.1-dev", > ensure => installed, > } > } > > class firebird::service { > service { "firebird2.1-classic": > ensure => running, > hasstatus => true, > hasrestart => true, > enable => true, > } > exec { "Create symlink for /var/fbdata": > path => "/usr/local/bin:/usr/local/sbin:/bin:/usr/bin", > environment => "HOME=/root", > user => "root", > group => "root", > mode => 755, > command => "/bin/ln -s /var/lib/firebird/2.1/data /var/fbdata", > refresh => false, > # unless => "/bin/ls -l /var/fbdata", > logoutput => on_failure, > } > } > > -- > Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig.wh...@ttiltd.com > 1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com > > Need help communicating between generations at work to achieve your desired > success? Let us help! > > -- > 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. > > -- 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.