From 64ccf1de13134d84f88bd4c54fcb854d66a62ecf Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Wed, 8 Nov 2017 22:15:38 +0100 Subject: [PATCH] Add support for nodejs 8 and 9 And Debian 9 --- Dockerfile | 20 ++++++++++++++++++++ Vagrantfile | 7 +++++++ meta/main.yml | 1 + vars/main.yml | 2 ++ 4 files changed, 30 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d9adf96 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM ubuntu:16.04 +MAINTAINER Mischa ter Smitten + +# python +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y python-minimal python-dev curl && \ + apt-get clean +RUN curl -sL https://bootstrap.pypa.io/get-pip.py | python - +RUN rm -rf $HOME/.cache + +# ansible +RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gcc libffi-dev libssl-dev && \ + apt-get clean +RUN pip install ansible==2.3.2.0 +RUN rm -rf $HOME/.cache + +# provision +COPY . /etc/ansible/roles/ansible-role +WORKDIR /etc/ansible/roles/ansible-role +RUN ansible-playbook -i tests/inventory tests/test.yml --connection=local diff --git a/Vagrantfile b/Vagrantfile index bc58786..0bb1bd6 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -40,6 +40,13 @@ boxes = [ :cpu => "50", :ram => "256" }, + { + :name => "debian-9", + :box => "bento/debian-9", + :ip => '10.0.0.16', + :cpu => "50", + :ram => "256" + }, ] Vagrant.configure("2") do |config| diff --git a/meta/main.yml b/meta/main.yml index 897948c..201c0ea 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -16,6 +16,7 @@ galaxy_info: versions: - wheezy - jessie + - stretch galaxy_tags: - system - web diff --git a/vars/main.yml b/vars/main.yml index 284f92f..01bf870 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,6 +1,8 @@ # vars file for nodejs --- nodejs_version_map: + nodejs-v9x: '9.x' + nodejs-v8x: '8.x' nodejs-v7x: '7.x' nodejs-v6x: '6.x' nodejs-v5x: '5.x'