escualo 0.2.9 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/escualo/bootstrap.rb +6 -5
- data/lib/escualo/plugin/postgre.rb +8 -4
- data/lib/escualo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7f0a63bbae41367d0f761667624c067f0e66daae
|
|
4
|
+
data.tar.gz: 974621879149eabd874d4ca17365919fd1bdcdfc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91895f4f1ce62316b43309012a1ea094bb5d2a87508e1ee8c9b157edf533c06f32863d33ea51e0a872f79fd8b8739c55ee8f1a5ad1616f08dd10c816b5a2c1c2
|
|
7
|
+
data.tar.gz: fa47740e4ba68845e904cd0de51e91f87458de897ce0197c4194732e73148a6aa4d009d73b27f371c77cf4f49ada50fe558596173a32ba3e3c890882de353ebb
|
data/lib/escualo/bootstrap.rb
CHANGED
|
@@ -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
|
|
6
|
-
apt-
|
|
7
|
-
apt-
|
|
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! %
|
|
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
|
|
data/lib/escualo/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2016-11-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: commander
|