Skip to content

Commit

Permalink
Merge pull request #65 from teacheraio/ubuntu
Browse files Browse the repository at this point in the history
Move Studio to Ubuntu official image
  • Loading branch information
secfigo authored Nov 26, 2018
2 parents 7ffbf20 + af53aad commit bca0a5b
Show file tree
Hide file tree
Showing 14 changed files with 89 additions and 40 deletions.
12 changes: 6 additions & 6 deletions machines.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
---
- name: DevSecOps-Box
box: bento/ubuntu-16.04
box: ubuntu/xenial64
ram: 512
ip: 10.0.1.10
ansible: "provisioning/devsecops-box.yml"

- name: jenkins
box: bento/ubuntu-16.04
box: ubuntu/xenial64
ram: 1024
ip: 10.0.1.11
ansible: "provisioning/jenkins.yml"

- name: gitlab
box: bento/ubuntu-16.04
box: ubuntu/xenial64
ram: 2048
ip: 10.0.1.15
ansible: "provisioning/gitlab.yml"

- name: gitlab-runner
box: bento/ubuntu-16.04
box: ubuntu/xenial64
ram: 512
ip: 10.0.1.16
ansible: "provisioning/gitlab-runner.yml"

- name: elk
box: bento/ubuntu-16.04
box: ubuntu/xenial64
ram: 1024
ip: 10.0.1.18
ansible: "provisioning/elk.yml"
Expand All @@ -37,7 +37,7 @@

# Includes registry docker, docker and docker compose installed.
- name: prod
box: bento/ubuntu-16.04
box: ubuntu/xenial64
ram: 1024
ip: 10.0.1.22
ansible: "provisioning/prod.yml"
17 changes: 12 additions & 5 deletions provisioning/devsecops-box.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
---

- name: Install Docker, Docker Compose, Ansible, Packer and Terraform
gather_facts: False
hosts: all
become: true
become_user: root
remote_user: vagrant
vars:
ansible_user: 'vagrant'
become: yes

pre_tasks:
- name: install python 2
raw: test -e /usr/bin/python || (apt-get -y update && apt-get install -y python-minimal)
- name: Run setup again for gather facts
setup:
- name: Fix hash mismatch error
apt:
update_cache: yes

vars:
# Inspec
ruby_version: 'ruby-2.3.1'
rvm1_rubies: ['{{ ruby_version }}']
Expand Down
13 changes: 11 additions & 2 deletions provisioning/elk.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
---

- name: Install ELK stack
gather_facts: False
hosts: all
become: yes
become_user: root
remote_user: vagrant

pre_tasks:
- name: install python 2
raw: test -e /usr/bin/python || (apt-get -y update && apt-get install -y python-minimal)
- name: Run setup again for gather facts
setup:
- name: Fix hash mismatch error
apt:
update_cache: yes

vars:
- elasticsearch_network_host: localhost
# host entries won't work in docker
Expand Down
15 changes: 12 additions & 3 deletions provisioning/gitlab-runner.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
---

- name: Install gitlab runner
gather_facts: False
hosts: all
become: true
become_user: root
remote_user: vagrant
become: yes

pre_tasks:
- name: install python 2
raw: test -e /usr/bin/python || (apt-get -y update && apt-get install -y python-minimal)
- name: Run setup again for gather facts
setup:
- name: Fix hash mismatch error
apt:
update_cache: yes

vars:
gitlab_runner_registration_token: 'CtNi9vq-4yFazTLntDU-'
gitlab_runner_connect_enable: false
Expand Down
12 changes: 10 additions & 2 deletions provisioning/gitlab.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
---

- name: Install gitlab server
gather_facts: False
hosts: all
become: yes
become_user: root
remote_user: vagrant

pre_tasks:
- name: install python 2
raw: test -e /usr/bin/python || (apt-get -y update && apt-get install -y python-minimal)
- name: Run setup again for gather facts
setup:
- name: Fix hash mismatch error
apt:
update_cache: yes

vars:
# host entries won't work in docker
Expand Down
17 changes: 13 additions & 4 deletions provisioning/jenkins.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
---
- hosts: all
gather_facts: yes

- name: Install Jenkins
gather_facts: False
hosts: all
become: yes
become_user: root
remote_user: vagrant

pre_tasks:
- name: install python 2
raw: test -e /usr/bin/python || (apt-get -y update && apt-get install -y python-minimal)
- name: Run setup again for gather facts
setup:
- name: Fix hash mismatch error
apt:
update_cache: yes

vars:
oracle_java_version: 8
Expand Down
3 changes: 1 addition & 2 deletions provisioning/molecule/devsecops/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
- name: Setup DevSecOps environment
hosts: all
become: true
become_user: root
remote_user: root

vars:
# Inspec
ruby_version: 'ruby-2.3.1'
Expand Down
3 changes: 1 addition & 2 deletions provisioning/molecule/elk/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
- name: Install ELK stack
hosts: all
become: yes
become_user: root
remote_user: root

vars:
- elasticsearch_network_host: localhost

Expand Down
3 changes: 1 addition & 2 deletions provisioning/molecule/gitlab-runner/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
- name: Install gitlab runner
hosts: all
become: true
become_user: root
remote_user: root

vars:
gitlab_runner_registration_token: ''
gitlab_runner_connect_enable: false
Expand Down
2 changes: 0 additions & 2 deletions provisioning/molecule/gitlab/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
- name: Configure gitlab on ubuntu server
hosts: all
become: true
become_user: root
remote_user: root

vars:
gitlab_restart_handler_failed_when: false
Expand Down
2 changes: 0 additions & 2 deletions provisioning/molecule/jenkins/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
- hosts: all
gather_facts: yes
become: yes
become_user: root
remote_user: root

vars:
oracle_java_version: 8
Expand Down
3 changes: 0 additions & 3 deletions provisioning/molecule/prod/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
- name: Setup production environment
hosts: all
become: true
become_user: root
remote_user: root
vars:

roles:
- common
Expand Down
15 changes: 12 additions & 3 deletions provisioning/prod.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
---

- name: Setup production environment
gather_facts: False
hosts: all
become: true
become_user: root
remote_user: vagrant
become: yes

pre_tasks:
- name: install python 2
raw: test -e /usr/bin/python || (apt-get -y update && apt-get install -y python-minimal)
- name: Run setup again for gather facts
setup:
- name: Fix hash mismatch error
apt:
update_cache: yes

vars:

# host entries won't work in docker
Expand Down
12 changes: 10 additions & 2 deletions provisioning/vuln-management.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
---

- name: Install Vulnerability Management
gather_facts: False
hosts: all
become: yes
become_user: root
remote_user: vagrant

pre_tasks:
- name: install python 2
raw: test -e /usr/bin/python || (apt-get -y update && apt-get install -y python-minimal)
- name: Run setup again for gather facts
setup:
- name: Fix hash mismatch error
apt:
update_cache: yes

vars:
# host entries won't work in docker
Expand Down

0 comments on commit bca0a5b

Please sign in to comment.