Skip to content
Snippets Groups Projects
Commit 9b780a13 authored by Engin Yoeyen's avatar Engin Yoeyen
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
roles/external
---
## Deploy Apt source custom template
apt_update_source_list : "template"
## use netherland mirror
apt_update_source_list_mirror : "http://nl.archive.ubuntu.com/ubuntu/"
## Install unattended package
unattended_install : True
apt_default_packages :
- python-apt
- unattended-upgrades
- language-pack-en-base
- unzip
---
nodejs_install_method : "binary"
nodejs_version : "0.12.0"
\ No newline at end of file
---
postgresql_cluster_reset : true
postgresql_data_directory : "/mnt/db/postgresql/{{postgresql_version}}/{{postgresql_cluster_name}}"
postgresql_listen_addresses : ["0.0.0.0"]
postgresql_pg_hba_trust_hosts : ["0.0.0.0/0"]
postgresql_databases : [
{name: "products"},
{name: "partners"}
]
postgresql_users : [
{name: "user_1", pass: "secret_password"},
{name: "user_2", pass: "secret_password"}
]
postgresql_user_privileges : [
{name: "user_1", db: "products"},
{name: "user_2", db: "partners"}
]
\ No newline at end of file
---
apt_default_key_urls :
- "http://nginx.org/keys/nginx_signing.key"
apt_default_repositories :
- "deb http://nginx.org/packages/ubuntu/ precise nginx"
- "deb-src http://nginx.org/packages/ubuntu/ precise nginx"
apt_default_packages :
- "nginx=1.6.2-1~precise"
---
nginx_etc : "/etc/nginx"
nginx_max_clients : 1024
nginx_install_repo : "nginx"
nginx_apt_state : "present"
[defaults]
roles_path=../roles/internal:../roles/external
\ No newline at end of file
---
- name: postgresql.yml | All roles
hosts: postgresql
sudo: True
roles:
- { role: common, tags: ["common"] }
- { role: ANXS.postgresql, tags: ["postgresql"] }
\ No newline at end of file
---
- name: webserver.yml | All roles
hosts: webserver
sudo: True
roles:
- { role: common, tags: ["common"] }
- { role: ansible-nginx, tags: ["nginx"] }
\ No newline at end of file
Common Role
=========
Only holds the list of dependencies that is required
\ No newline at end of file
---
dependencies:
- {role: ansible-apt, tags: apt }
- {role: ansible-hostname, tags: hostname }
- {role: Stouts.sudo, tags: sudo }
- {role: ANXS.openssh, tags: openssh }
- {role: knopki.locale, tags: locale }
\ No newline at end of file
- src: git+https://github.com/yetu/ansible-apt.git
version: "v0.1.4"
name: ansible-apt
path : external
- src: git+https://github.com/yetu/ansible-hostname.git
version: "v0.1.2"
name: ansible-hostname
path : external
- src: git+https://github.com/Stouts/Stouts.sudo.git
version: "1.0.0"
path : external
- src: git+https://github.com/ANXS/openssh.git
version: "v1.0.1"
name: ANXS.openssh
path : external
- src: git+https://github.com/knopki/ansible-locale.git
version: "v1.0.3"
name: knopki.locale
path : external
- src: git+https://github.com/ANXS/postgresql.git
version: "v1.1.1"
name: ANXS.postgresql
path : external
- src: git+https://github.com/yetu/ansible-nginx.git
version: "v1.0.1"
name: ansible-nginx
path : external
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment