jsenin / decide-madrid-vagrant Goto Github PK
View Code? Open in Web Editor NEWvagrant provision for https://github.com/AyuntamientoMadrid/consul/
vagrant provision for https://github.com/AyuntamientoMadrid/consul/
How to install node and phantomjs
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash
source ~/.bashrc
nvm install 4.2.2
nvm use default 4.2.2
npm install phantomjs -g
Bundle install it's not able to download gems because dns resolution fails
change /etc/resolv.conf to an another ip
When running 'vagrant up' the process end failing with:
__________________________________________________________
< TASK: consul | configure postresql auth for vagrant user >
----------------------------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
failed: [default] => {"changed": true, "item": "", "rc": 2}
stdout: psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
FATAL: all hosts have already failed -- aborting
____________
< PLAY RECAP >
------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
to retry, use: --limit @/home/user/decidemadrid.retry
default : ok=13 changed=11 unreachable=0 failed=1
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
Trying to run 'psql' on the vagrant machine gets the following error:
$ vagrant ssh
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Dec 10 13:05:24 2015 from 10.0.2.2
vagrant@debian-jessie:~$ psql
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_PAPER = "es_ES.UTF-8",
LC_ADDRESS = "es_ES.UTF-8",
LC_MONETARY = "es_ES.UTF-8",
LC_NUMERIC = "es_ES.UTF-8",
LC_TELEPHONE = "es_ES.UTF-8",
LC_IDENTIFICATION = "es_ES.UTF-8",
LC_MEASUREMENT = "es_ES.UTF-8",
LC_TIME = "es_ES.UTF-8",
LC_NAME = "es_ES.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
This maybe it's related to http://stackoverflow.com/questions/17712700/postgres-locale-error that solves setting the locale on the machine
Note: I have PostgreSQL running on my local machine.
Error:
"TASK: [rvm | add gpg keyserver] ***********************************************
failed: [default] => {"changed": true, "cmd": "gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3", "delta": "0:00:00.664421", "end": "2015-12-10 12:06:38.533313", "rc": 2, "start": "2015-12-10 12:06:37.868892", "warnings": []}
stderr: gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
stdout: ?: keys.gnupg.net: Host not found
gpgkeys: HTTP fetch error 7: couldn't connect: Success
FATAL: all hosts have already failed -- aborting"
vagrant ssh
\curl -sSL https://get.rvm.io | bash -s stable --ruby
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
exit
main.yml
, locate at ansible/roles/rvm/tasks/
. Before edit the your main.yml, that must look like this:---
- name: add gpg keyserver
shell: gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
sudo: false
- name: download rvm and install ruby
shell: \curl -sSL https://get.rvm.io | bash -s stable --ruby
sudo: false
- name: Installing addtional packages ( nodejs... )
apt: pkg={{ item }} state=present
with_items:
- nodejs
add gpg keyserver
and the 3 following lines. After edit main.yml
, that must look like this:---
- name: download rvm and install ruby
shell: \curl -sSL https://get.rvm.io | bash -s stable --ruby
sudo: false
- name: Installing addtional packages ( nodejs... )
apt: pkg={{ item }} state=present
with_items:
- nodejs
vagrant provision
and should finish configuring the vagrant machine.Remove src submodule and add it as a clone
Adds an upstream remote when clone is done
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.