Liste des paquets dans un fichier séparé
This commit is contained in:
parent
7f58b5fa00
commit
783fe1de32
2 changed files with 36 additions and 7 deletions
|
@ -17,16 +17,20 @@ readonly REDIS_PASSWD="dummy"
|
|||
readonly DJANGO_SETTINGS_MODULE="cof.settings.dev"
|
||||
|
||||
|
||||
# Installation de paquets utiles
|
||||
apt-get update
|
||||
# ---
|
||||
# Installation des paquets systèmes
|
||||
# ---
|
||||
|
||||
get_packages_list () {
|
||||
sed 's/#.*$//' /vagrant/provisioning/packages.list | grep -v '^ *$'
|
||||
}
|
||||
|
||||
# https://github.com/chef/bento/issues/661
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
apt-get update
|
||||
apt-get -y upgrade
|
||||
# -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
|
||||
# upgrade
|
||||
apt-get install -y python3-pip python3-dev python3-venv libpq-dev postgresql \
|
||||
postgresql-contrib libjpeg-dev nginx git redis-server \
|
||||
libldap2-dev libsasl2-dev slapd ldap-utils
|
||||
get_packages_list | xargs apt-get install -y
|
||||
|
||||
# Postgresql
|
||||
pg_user_exists () {
|
||||
|
|
25
provisioning/packages.list
Normal file
25
provisioning/packages.list
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Python
|
||||
python3-pip
|
||||
python3-dev
|
||||
python3-venv
|
||||
|
||||
# Pour installer authens depuis git.eleves
|
||||
git
|
||||
|
||||
# Postgres
|
||||
libpq-dev
|
||||
postgresql
|
||||
postgresql-contrib
|
||||
|
||||
# Pour Pillow
|
||||
libjpeg-dev
|
||||
|
||||
# Outils de prod
|
||||
nginx # Test
|
||||
redis-server
|
||||
|
||||
# Le LDAP
|
||||
libldap2-dev
|
||||
libsasl2-dev
|
||||
slapd
|
||||
ldap-utils
|
Loading…
Reference in a new issue