I am getting this error in the logs for exec. I am surprised this is an error instead of an info or a notice. As I understand the create attribute of the exec type it is supposed to tell exec to not run if the file or directory it creates is already created. err: change from notrun to 0 failed: /usr/bin/svnadmin create /srv/svn/hobbit returned 1 instead of 0 at /srv/puppet/production/manifests/modules/subversion/manifests/init.pp:6 //Node[pixie]/subversion/Svnrepo[hobbit]/Exec[create-svn-hobbit]/returns evan --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Jun 30, 2008, at 10:30 AM, Evan Hisey wrote:> > I am getting this error in the logs for exec. I am surprised this is > an error instead of an info or a notice. As I understand the create > attribute of the exec type it is supposed to tell exec to not run if > the file or directory it creates is already created. > > err: change from notrun to 0 failed: /usr/bin/svnadmin create > /srv/svn/hobbit returned 1 instead of 0 at > /srv/puppet/production/manifests/modules/subversion/manifests/ > init.pp:6 > //Node[pixie]/subversion/Svnrepo[hobbit]/Exec[create-svn-hobbit]/ > returnsI don''t really understand your question. The exception you''re getting is because the command failed. If you used ''creates'', and you think the command shouldn''t have run, then there''s some kind of problem with your exec. If the command fails, then yes, it should be an error. What am I missing? -- Seize opportunity by the beard, for it is bald behind. -- Bulgarian Proverb --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Mon, Jun 30, 2008 at 1:16 PM, Luke Kanies <luke@madstop.com> wrote:> > On Jun 30, 2008, at 10:30 AM, Evan Hisey wrote: > >> >> I am getting this error in the logs for exec. I am surprised this is >> an error instead of an info or a notice. As I understand the create >> attribute of the exec type it is supposed to tell exec to not run if >> the file or directory it creates is already created. >> >> err: change from notrun to 0 failed: /usr/bin/svnadmin create >> /srv/svn/hobbit returned 1 instead of 0 at >> /srv/puppet/production/manifests/modules/subversion/manifests/ >> init.pp:6 >> //Node[pixie]/subversion/Svnrepo[hobbit]/Exec[create-svn-hobbit]/ >> returns > > > I don''t really understand your question. > > The exception you''re getting is because the command failed. If you > used ''creates'', and you think the command shouldn''t have run, then > there''s some kind of problem with your exec. > > If the command fails, then yes, it should be an error. > > What am I missing? >I must have been looking at the error to long. I was missing something, the error was correct, I was looking at the wrong directories thinking the type had been executed correctly. evan --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---