Replaced some exec tests with creates parameter
This commit is contained in:
parent
64f15fc9b9
commit
1c051a1e2b
3 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ define python::setup::install($python="python") {
|
|||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
cwd => "${name}",
|
||||
command => "${python} setup.py install",
|
||||
unless => "test -d build",
|
||||
creates => "${name}/build",
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ define svn::checkout($source, $ensure="HEAD") {
|
|||
exec { "svn-co-${name}":
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
command => "svn checkout --non-interactive -r ${ensure} ${source} ${name}",
|
||||
unless => "test -d ${name}",
|
||||
creates => "${name}",
|
||||
require => [ Package["subversion"], File["/etc/subversion/servers"], ],
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ class user::virtual {
|
|||
command => "umask 077; mkdir -p ${home} && tar cf - . | tar xf - -C ${home} && chown -R ${uid}:${gid} ${home}",
|
||||
cwd => "/etc/skel",
|
||||
path => "/sbin:/usr/sbin:/bin:/usr/bin",
|
||||
unless => "test -d ${home}",
|
||||
creates => "${home}",
|
||||
refreshonly => true,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue