-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #585 from Capgemini/coreos
Initial commit of work in progress on CoreOS
- Loading branch information
Showing
62 changed files
with
644 additions
and
853 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,4 @@ ansible_groups: | |
"vagrant:children": | ||
- mesos_masters | ||
- mesos_slaves | ||
- load_balancers | ||
- load_balancers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,4 @@ datadog_config: | |
tags: "{{ mesos_cluster_name }}" | ||
log_level: INFO | ||
|
||
|
||
coreos_timezone: 'Europe/London' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
- name: bootstrap coreos hosts | ||
hosts: all | ||
gather_facts: False | ||
roles: | ||
- coreos_bootstrap | ||
- coreos_timezone | ||
|
||
- name: Install docker-py | ||
hosts: all | ||
gather_facts: False | ||
tasks: | ||
- pip: | ||
name: docker-py | ||
version: 1.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- src: mkaag.coreos-timezone | ||
name: coreos_timezone | ||
|
||
- src: defunctzombie.coreos-bootstrap | ||
name: coreos_bootstrap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[Unit] | ||
Description=cadvisor | ||
After=docker.service | ||
Requires=docker.service | ||
|
||
[Service] | ||
Restart=on-failure | ||
RestartSec=20 | ||
TimeoutStartSec=0 | ||
EnvironmentFile=-/etc/environment | ||
ExecStartPre=-/usr/bin/docker kill cadvisor | ||
ExecStartPre=-/usr/bin/docker rm cadvisor | ||
ExecStartPre=/usr/bin/docker pull {{ cadvisor_image }} | ||
ExecStart=/usr/bin/docker run --name cadvisor \ | ||
--restart={{ cadvisor_restart_policy }} \ | ||
--net={{ cadvisor_net }} \ | ||
--hostname={{ cadvisor_hostname }} \ | ||
-v /var/lib/docker/:/var/lib/docker:ro \ | ||
-v /:/rootfs:ro \ | ||
-v /var/run:/var/run:rw \ | ||
-v /sys:/sys:ro \ | ||
{{ cadvisor_image }} | ||
|
||
ExecStop=/usr/bin/docker stop cadvisor | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
- name: create consul dirs | ||
sudo: yes | ||
file: | ||
path: "{{ item }}" | ||
state: directory | ||
mode: 0755 | ||
with_items: | ||
- "{{ consul_data_dir }}" | ||
- "{{ consul_config_dir }}" | ||
|
||
- name: configure consul | ||
sudo: yes | ||
template: | ||
src: consul.json.j2 | ||
dest: /etc/consul.d/consul.json | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
notify: | ||
- restart consul | ||
tags: | ||
- consul |
Oops, something went wrong.