Merge "Adding DreamHost environment"
This commit is contained in:
commit
5cfa635d17
|
@ -0,0 +1,21 @@
|
||||||
|
---
|
||||||
|
horizon_url: "https://iad2.dreamcompute.com"
|
||||||
|
|
||||||
|
auth: {
|
||||||
|
auth_url: "https://iad2.dream.io:5000/v2.0",
|
||||||
|
username: "stemaf4",
|
||||||
|
password: "{{ password }}",
|
||||||
|
project_name: "dhc2131831"
|
||||||
|
}
|
||||||
|
|
||||||
|
app_env: {
|
||||||
|
region_name: "RegionOne",
|
||||||
|
image_name: "CoreOS Sept16",
|
||||||
|
private_net_name: "",
|
||||||
|
flavor_name: "gp1.subsonic",
|
||||||
|
public_key_file: "/home/reed/.ssh/id_rsa.pub",
|
||||||
|
swarm_version: "latest",
|
||||||
|
swarm_size: 3,
|
||||||
|
fqdn: "swarm.example.com",
|
||||||
|
net_device: "eth0",
|
||||||
|
}
|
|
@ -1,3 +1,3 @@
|
||||||
[defaults]
|
[defaults]
|
||||||
inventory = ./hosts
|
inventory = ./hosts
|
||||||
host_key_checking=False
|
host_key_checking = False
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
- name: setup database
|
- name: setup database
|
||||||
hosts: dbservers
|
hosts: dbservers
|
||||||
user: ubuntu
|
user: "{{ app_env.ssh_user }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: root
|
become_user: root
|
||||||
vars_files:
|
vars_files:
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
- name: setup web servers
|
- name: setup web servers
|
||||||
hosts: webservers
|
hosts: webservers
|
||||||
user: ubuntu
|
user: "{{ app_env.ssh_user }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: root
|
become_user: root
|
||||||
vars_files:
|
vars_files:
|
||||||
|
@ -29,15 +29,17 @@
|
||||||
|
|
||||||
- name: setup load balancer servers
|
- name: setup load balancer servers
|
||||||
hosts: balancers
|
hosts: balancers
|
||||||
user: ubuntu
|
user: "{{ app_env.ssh_user }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: root
|
become_user: root
|
||||||
|
vars_files:
|
||||||
|
- "vars/{{ env }}.yml"
|
||||||
roles:
|
roles:
|
||||||
- balancer
|
- balancer
|
||||||
|
|
||||||
- name: install wordpress
|
- name: install wordpress
|
||||||
hosts: wps
|
hosts: wps
|
||||||
user: ubuntu
|
user: "{{ app_env.ssh_user }}"
|
||||||
vars_files:
|
vars_files:
|
||||||
- "vars/{{ env }}.yml"
|
- "vars/{{ env }}.yml"
|
||||||
roles:
|
roles:
|
||||||
|
@ -74,4 +76,4 @@
|
||||||
- debug:
|
- debug:
|
||||||
msg: >-
|
msg: >-
|
||||||
The work load test started at {{ hostvars.cloud.starttime.time }},
|
The work load test started at {{ hostvars.cloud.starttime.time }},
|
||||||
ended at {{ ansible_date_time.time }}
|
ended at {{ ansible_date_time.time }}
|
||||||
|
|
|
@ -9,6 +9,7 @@ auth: {
|
||||||
}
|
}
|
||||||
|
|
||||||
app_env: {
|
app_env: {
|
||||||
|
ssh_user: "ubuntu",
|
||||||
image_name: "ubuntu-15.04",
|
image_name: "ubuntu-15.04",
|
||||||
region_name: "",
|
region_name: "",
|
||||||
availability_zone: "",
|
availability_zone: "",
|
||||||
|
@ -17,7 +18,7 @@ app_env: {
|
||||||
flavor_name: "m1.small",
|
flavor_name: "m1.small",
|
||||||
public_key_file: "/home/tong/.ssh/id_rsa.pub",
|
public_key_file: "/home/tong/.ssh/id_rsa.pub",
|
||||||
stack_size: 4,
|
stack_size: 4,
|
||||||
volume_size: 2,
|
volume_size: 10,
|
||||||
block_device_name: "/dev/vdb",
|
block_device_name: "/dev/vdb",
|
||||||
wp_theme: "https://downloads.wordpress.org/theme/iribbon.2.0.65.zip",
|
wp_theme: "https://downloads.wordpress.org/theme/iribbon.2.0.65.zip",
|
||||||
wp_posts: "http://wpcandy.s3.amazonaws.com/resources/postsxml.zip"
|
wp_posts: "http://wpcandy.s3.amazonaws.com/resources/postsxml.zip"
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
---
|
||||||
|
horizon_url: "https://iad2.dreamcompute.com"
|
||||||
|
|
||||||
|
auth: {
|
||||||
|
auth_url: "https://iad2.dream.io:5000/v2.0",
|
||||||
|
username: "stemaf4",
|
||||||
|
password: "{{ password }}",
|
||||||
|
project_name: "dhc2131831"
|
||||||
|
}
|
||||||
|
|
||||||
|
app_env: {
|
||||||
|
ssh_user: "ubuntu",
|
||||||
|
region_name: "RegionOne",
|
||||||
|
image_name: "Ubuntu-14.04",
|
||||||
|
private_net_name: "",
|
||||||
|
validate_certs: False,
|
||||||
|
availability_zone: "iad-2",
|
||||||
|
flavor_name: "gp1.subsonic",
|
||||||
|
public_key_file: "/home/reed/.ssh/id_rsa.pub",
|
||||||
|
stack_size: 4,
|
||||||
|
volume_size: 10,
|
||||||
|
block_device_name: "/dev/vdb",
|
||||||
|
wp_theme: "https://downloads.wordpress.org/theme/iribbon.2.0.65.zip",
|
||||||
|
wp_posts: "http://wpcandy.s3.amazonaws.com/resources/postsxml.zip"
|
||||||
|
}
|
|
@ -14,6 +14,7 @@ app_env: {
|
||||||
region_name: "RegionOne",
|
region_name: "RegionOne",
|
||||||
availability_zone: "nova",
|
availability_zone: "nova",
|
||||||
validate_certs: False,
|
validate_certs: False,
|
||||||
|
ssh_user: "ubuntu",
|
||||||
private_net_name: "Bluebox",
|
private_net_name: "Bluebox",
|
||||||
flavor_name: "m1.small",
|
flavor_name: "m1.small",
|
||||||
public_key_file: "/home/tong/.ssh/id_rsa.pub",
|
public_key_file: "/home/tong/.ssh/id_rsa.pub",
|
||||||
|
|
Loading…
Reference in New Issue