mirror of https://github.com/zulip/zulip.git
puppet: Use absolute paths in execs
(imported from commit 426c572a4653ad44aa315b43d49c0d6ce001a58d)
This commit is contained in:
parent
5c6a3f3e66
commit
eba1008b1c
|
@ -33,7 +33,7 @@ class humbug::app_frontend {
|
|||
}
|
||||
|
||||
exec {"pip6":
|
||||
command => "pip install django-pipeline",
|
||||
command => "/usr/bin/pip install django-pipeline",
|
||||
onlyif => "test ! -d /usr/local/lib/python2.6/dist-packages/django-pipeline"
|
||||
}
|
||||
|
||||
|
|
|
@ -10,23 +10,23 @@ class humbug::base {
|
|||
|
||||
# FIXME: Stop using pip since it is insecure
|
||||
exec {"pip":
|
||||
command => "pip install django-jstemplate",
|
||||
command => "/usr/bin/pip install django-jstemplate",
|
||||
onlyif => "test ! -d /usr/local/lib/python2.6/dist-packages/jstemplate"
|
||||
}
|
||||
exec {"pip2":
|
||||
command => "pip install markdown",
|
||||
command => "/usr/bin/pip install markdown",
|
||||
onlyif => "test ! -d /usr/local/lib/python2.6/dist-packages/markdown"
|
||||
}
|
||||
exec {"pip3":
|
||||
command => "pip install requests",
|
||||
command => "/usr/bin/pip install requests",
|
||||
onlyif => "test ! -d /usr/local/lib/python2.6/dist-packages/requests"
|
||||
}
|
||||
exec {"pip4":
|
||||
command => "pip install pika",
|
||||
command => "/usr/bin/pip install pika",
|
||||
onlyif => "test ! -d /usr/local/lib/python2.6/dist-packages/pika"
|
||||
}
|
||||
exec {"pip5":
|
||||
command => "pip install South",
|
||||
command => "/usr/bin/pip install South",
|
||||
onlyif => "test ! -d /usr/local/lib/python2.6/dist-packages/south"
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
# globals
|
||||
Exec { path => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" }
|
||||
|
||||
class humbug {
|
||||
Exec { path => "/usr/sbin:/usr/bin:/sbin:/bin" }
|
||||
|
||||
|
|
|
@ -41,13 +41,13 @@ class humbug::postgres {
|
|||
}
|
||||
|
||||
exec { "sysctl_p":
|
||||
command => "sysctl -p /etc/sysctl.d/30-postgresql-shm.conf",
|
||||
command => "/sbin/sysctl -p /etc/sysctl.d/30-postgresql-shm.conf",
|
||||
require => [ Common::Append_if_no_such_line['shmmax'],
|
||||
Common::Append_if_no_such_line['shmall'],
|
||||
],
|
||||
}
|
||||
|
||||
exec { "disable_logrotate":
|
||||
command => "dpkg-divert --rename --divert /etc/logrotate.d/postgresql-common.disabled --add /etc/logrotate.d/postgresql-common"
|
||||
command => "/usr/bin/dpkg-divert --rename --divert /etc/logrotate.d/postgresql-common.disabled --add /etc/logrotate.d/postgresql-common",
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue