forked from anilcse/cosmos-utils
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6059145
commit f36b6df
Showing
8 changed files
with
108 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
## Sample Ansible playbook | ||
|
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,12 @@ | ||
# config file for ansible -- https://ansible.com/ | ||
# =============================================== | ||
|
||
[defaults] | ||
inventory = ./inventory.yml | ||
host_key_checking = False | ||
remote_user = ubuntu | ||
deprecation_warnings=False | ||
private_key_file = .workspace/private.pem | ||
ansible_ssh_private_key_file: /home/user/id_rsa | ||
ansible_connection: ssh | ||
ansible_ssh_user: ubuntu |
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,2 @@ | ||
--- | ||
ansible_user: ubuntu |
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,11 @@ | ||
all: | ||
|
||
hosts: | ||
children: | ||
sentry: | ||
hosts: | ||
123.456.789.12: | ||
23.34.45.56: | ||
validator: | ||
hosts: | ||
45.56.78.89: |
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,21 @@ | ||
--- | ||
- name: Node setup | ||
hosts: all | ||
tasks: | ||
- name: Install deps | ||
include_role: | ||
name: roles/install-deps | ||
apply: | ||
tags: always | ||
tags: | ||
- install_deps | ||
|
||
- name: Install binary | ||
include_role: | ||
name: roles/install-binary | ||
apply: | ||
tags: always | ||
tags: | ||
- Build | ||
|
||
|
Empty file.
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,4 @@ | ||
--- | ||
branch: master | ||
|
||
repo: https://github.com/cosmos/gaia.git |
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,56 @@ | ||
--- | ||
# Installing deps | ||
|
||
- name: apt-get update | ||
apt: | ||
update_cache: yes | ||
become: true | ||
|
||
- name: build-essential | ||
action: apt pkg=build-essential | ||
become: true | ||
|
||
- name: libssl-dev | ||
action: apt pkg=libssl-dev | ||
become: true | ||
|
||
- name: libseccomp-dev | ||
action: apt pkg=libseccomp-dev | ||
become: true | ||
|
||
- name: pkg-config | ||
action: apt pkg=pkg-config | ||
become: true | ||
|
||
- name: jq | ||
action: apt pkg=jq | ||
become: true | ||
|
||
- name: git | ||
action: apt pkg=git | ||
become: true | ||
|
||
- name: make | ||
action: apt pkg=make | ||
become: true | ||
|
||
- name: netstat | ||
action: apt pkg=netstat-tools | ||
become: true | ||
|
||
|
||
- name: Download go script | ||
get_url: | ||
url: https://gist.githubusercontent.com/kaustubhkapatral/e0ee6100acb42bd9d4d97f067f7ce3eb/raw/30f9b7eca627986610ec9bafa217341df85502ed/go.sh | ||
dest: "{{ ansible_env.HOME }}/go.sh" | ||
mode: '0755' | ||
|
||
- name: Run go.sh | ||
command: bash go.sh | ||
args: | ||
chdir: "{{ ansible_env.HOME }}" | ||
|
||
- name: Remove go.sh | ||
file: | ||
path: "{{ ansible_env.HOME }}/go.sh" | ||
state: absent |