Hi all, I'm changing my code and I'd like to control a entire tree by svn and not puppet fileserver (we're trying to decrease puppet load). So I've created a copule of execs, one for svn checkout the other for svn update.
svn checkout looks like: exec { 'svn_check_out' : cwd => '/opt/localconf', command => 'svn co svn://repo/ && touch /usr/local/lock/svn', create => '/usr/local/lock/svn', require => Files['localconf'], } first question, which is the best way for controlling a checkout? Is my create "lock file" mode good enough? How do other admins mange this kind of situation? then my svn update looks like: exec { 'svn_update' : cwd => '/opt/localconf', command => 'svn up gLite3.1', require => [Files['localconf'], Exec['svn_check_out']], } update needs checkout, but only once. So, I'm wondering if this code is correct, or if that require svn_check_out could be coded in other way. Finally, the "exec question" is: how do you manage an exec that "depends" (unless) on 2 or more conditions? may I separate them in the unless with logical or (||)? I'd like to hear other admins experience. TIA, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.