escualo 0.2.9 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a0bde0f6f3901516f6e8788ed88742f40140b55
4
- data.tar.gz: 1cfb5ffa7192ef0e61fde400c136706c55aebb42
3
+ metadata.gz: 7f0a63bbae41367d0f761667624c067f0e66daae
4
+ data.tar.gz: 974621879149eabd874d4ca17365919fd1bdcdfc
5
5
  SHA512:
6
- metadata.gz: 31c49e03d89f58d749692db41b04f9e8316034f66af2d047c41fb20816c6effd529ddf06486352b1f84e0cf5b4a70dd93c6057e839852eb499c55de4c6da9985
7
- data.tar.gz: 4807f9b96897638b2b069aed9a99fad06700fecc593f9ff7d58b9defb47b9419f345d05ecb52c2c6eeedc02487a5f3b4921823e157efd855b259657c59e45ad3
6
+ metadata.gz: 91895f4f1ce62316b43309012a1ea094bb5d2a87508e1ee8c9b157edf533c06f32863d33ea51e0a872f79fd8b8739c55ee8f1a5ad1616f08dd10c816b5a2c1c2
7
+ data.tar.gz: fa47740e4ba68845e904cd0de51e91f87458de897ce0197c4194732e73148a6aa4d009d73b27f371c77cf4f49ada50fe558596173a32ba3e3c890882de353ebb
@@ -1,10 +1,11 @@
1
1
  module Escualo
2
2
  module Bootstrap
3
3
  def self.install_base(ssh, options)
4
- ssh.shell.perform! %q{ \
5
- apt-get install software-properties-common -y && \
6
- apt-add-repository ppa:brightbox/ruby-ng && \
7
- apt-get update && \
4
+ ssh.shell.perform! %q{
5
+ apt-get purge libruby* -y &&
6
+ apt-get install software-properties-common -y &&
7
+ apt-add-repository ppa:brightbox/ruby-ng &&
8
+ apt-get update &&
8
9
  apt-get install -y \
9
10
  autoconf \
10
11
  bison \
@@ -24,7 +25,7 @@ module Escualo
24
25
  end
25
26
 
26
27
  def self.enable_swap(ssh)
27
- ssh.exec! %Q{ \
28
+ ssh.exec! %q{ \
28
29
  test -e /swapfile ||
29
30
  fallocate -l 4G /swapfile && \
30
31
  chmod 600 /swapfile && \
@@ -5,10 +5,14 @@ module Escualo::Plugin
5
5
 
6
6
  ssh.shell.perform! %Q{
7
7
  apt-get install postgresql libpq-dev -y &&
8
- echo 'local all postgres peer' > #{pg_hba_conf} && \
9
- echo 'local all postgres peer' >> #{pg_hba_conf} && \
10
- echo 'local all all password' >> #{pg_hba_conf} && \
11
- echo 'host all all 127.0.0.1/32 md5' >> #{pg_hba_conf}
8
+ echo 'local all postgres peer' > #{pg_hba_conf} &&
9
+ echo 'local all postgres peer' >> #{pg_hba_conf} &&
10
+ echo 'local all all password' >> #{pg_hba_conf} &&
11
+ echo 'host all all 127.0.0.1/32 md5' >> #{pg_hba_conf} &&
12
+ cd / &&
13
+ sudo -u postgres PGDATABASE='' psql <<EOF
14
+ create role \\$POSTGRESQL_DB_USERNAME with createdb login password '\\$POSTGRESQL_DB_PASSWORD';
15
+ EOF
12
16
  }, options
13
17
  end
14
18
 
@@ -1,4 +1,4 @@
1
1
  module Escualo
2
- VERSION = '0.2.9'
2
+ VERSION = '0.2.10'
3
3
  BASE_VERSION = '3.1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: escualo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-08 00:00:00.000000000 Z
11
+ date: 2016-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander