class DevenvBuild::Provisioning::Postgresql
Public Instance Methods
after()
click to toggle source
# File lib/devenv_build/provisioning/postgresql.rb, line 19 def after <<-AFTER PG_VERSION=`pg_lsclusters | tail -n 1 | awk '{ print $1 }'` sudo -u postgres pg_dropcluster --stop $PG_VERSION main sudo -u postgres pg_createcluster --start $PG_VERSION main sudo -u postgres createuser -d -R -w -S $USER perl -i -p -e 's/local all all peer/local all all trust/' /etc/postgresql/$PG_VERSION/main/pg_hba.conf AFTER end
before()
click to toggle source
# File lib/devenv_build/provisioning/postgresql.rb, line 8 def before <<-BEFORE curl -s https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list BEFORE end
help()
click to toggle source
# File lib/devenv_build/provisioning/postgresql.rb, line 4 def help 'Install PostgreSQL with permissions for vagrant user.' end
middle()
click to toggle source
# File lib/devenv_build/provisioning/postgresql.rb, line 15 def middle "apt-get -y install postgresql postgresql-contrib libpq-dev" end