-
Notifications
You must be signed in to change notification settings - Fork 0
create dock with ansible #264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
2ef1ea0
fixing stage configs init
a2ad5ea
set consul host for stage, log vault to docker logs
3ad9515
new vault secrets
c1de426
add docker-init role, add git_repo, move vault vars
f303efb
fix repo pull include
0768379
split out git repo from git service, remove dock file
e85414f
add node_service
7f8a073
remove unused env's
839affa
fix up configs
10b5ec1
remove ip tables, add config file back
637815e
add docker install for dock
2660a6b
add docker config for docks
bd90cf9
Merge branch 'master' into fix-stage-configs
cb3540e
merge with master
27f4563
add connection local
bb892f0
remove datadog and sauron
48ad0a5
Added cert for docker
kaushikanurag c1ddadd
added aws ec2-metadata and ec2-api-tool
kaushikanurag 455673a
changed aws-package to dock-init meta
kaushikanurag 2a0101f
Modified AWS Package
kaushikanurag 630ed8e
add logic to remove certificate and other security related stuff
kaushikanurag 3bdb751
merge with master
f502c7e
change for AWS packages
kaushikanurag 413275c
unzip error
kaushikanurag 31aefa8
comment all task in aws package
kaushikanurag d0377bc
added datadog to dock-init.yml
kaushikanurag e9488f0
added package, cert for dock ami
kaushikanurag 3ac4955
added get-url and unzip
kaushikanurag afbb314
add unzip for api tool
kaushikanurag e176e6e
Update to latest branch and move ec2-api-toool to ec2
kaushikanurag b522846
correct typo
kaushikanurag 7046c06
changes to rollbar token from file to variable
kaushikanurag 6d59caa
changes to fix errors
kaushikanurag 60cf613
Delete.
98c6811
move datadog above git_repo
kaushikanurag 41a6233
Merge branch 'fix-stage-configs' of github.com:CodeNow/devops-scripts…
kaushikanurag File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,7 +1,15 @@ | ||
--- | ||
- hosts: consul | ||
|
||
- hosts: "{{ dock }}" | ||
vars_files: | ||
- group_vars/alpha-dock-init.yml | ||
roles: | ||
- { role: notify, tags: [notify] } | ||
- { role: package-dock, tags: [dock, package] } | ||
- { role: package-aws, tags: [dock, package] } | ||
- { role: docker, tags: [docker] } | ||
- { role: datadog, tags: [deploy, datadog] } | ||
- { role: git_repo, tags: [deploy] } | ||
- { role: dock-init, tags: [deploy] } | ||
- { role: consul_value, tags: [deploy, consul_value] } |
This file contains hidden or 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,16 @@ | ||
--- | ||
- hosts: localhost | ||
connection: local | ||
tasks: | ||
- fail: msg="`dock` (target dock) needs to be defined to run this role" | ||
when: dock is not defined | ||
- add_host: | ||
name={{ dock }} | ||
groups=dock | ||
|
||
- include: dock-init.yml git_branch=v6.0.0 | ||
- include: krain.yml git_branch=v0.1.1 | ||
- include: filibuster.yml git_branch=v0.1.7 | ||
- include: charon.yml git_branch=v3.2.0 | ||
- include: image-builder.yml git_branch=v4.0.1 | ||
- include: docker-listener.yml git_branch=v4.3.0 |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
--- | ||
- hosts: consul | ||
|
||
- hosts: docks | ||
- hosts: "{{ dock | default('docks') }}" | ||
vars_files: | ||
- group_vars/alpha-filibuster.yml | ||
roles: | ||
- { role: notify, tags: [notify] } | ||
- { role: git_node_service, tags: [deploy] } | ||
- { role: git_repo, tags: [deploy] } | ||
- { role: node_service, tags: [deploy] } | ||
- { role: loggly-rotate } | ||
- { role: consul_value, tags: [deploy, consul_value] } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
--- | ||
- hosts: consul | ||
|
||
- hosts: docks | ||
- hosts: "{{ dock | default('docks') }}" | ||
vars_files: | ||
- group_vars/alpha-krain.yml | ||
roles: | ||
- { role: notify, tags: [notify] } | ||
- { role: build_essential } | ||
- { role: git_node_service, tags: [deploy] } | ||
- { role: git_repo, tags: [deploy] } | ||
- { role: node_service, tags: [deploy] } | ||
- { role: loggly-rotate } | ||
- { role: consul_value, tags: [deploy, consul_value] } |
This file contains hidden or 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 hidden or 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,25 @@ | ||
--- | ||
- fail: msg="value tokens need to be defined for this role" | ||
when: vault_auth_token is not defined or vault_token_01 is not defined or vault_token_02 is not defined or vault_token_03 is not defined | ||
|
||
- name: copy vault auth files | ||
tags: vault_files | ||
lineinfile: | ||
dest="/opt/runnable/dock-init/consul-resources/vault/{{ node_env }}/{{ item.file_name }}" | ||
line="{{ item.value }}" | ||
create=yes | ||
with_items: | ||
- { file_name: 'auth-token', value: "{{ vault_auth_token }}" } | ||
- { file_name: 'token-01', value: "{{ vault_token_01 }}" } | ||
- { file_name: 'token-02', value: "{{ vault_token_02 }}" } | ||
- { file_name: 'token-03', value: "{{ vault_token_03 }}" } | ||
|
||
- fail: msg="value tokens need to be defined for this role" | ||
when: docks_rollbar_key is not defined | ||
|
||
- name: copy rollbar token | ||
tags: rollbar | ||
lineinfile: | ||
dest="/opt/runnable/dock-init/key/rollbar.token" | ||
line="{{ docks_rollbar_key }}" | ||
create=yes |
This file contains hidden or 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
docker_package_name: lxc-docker-1.6.2 | ||
docker_package_name: docker-engine=1.9.1-0~trusty |
This file contains hidden or 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 hidden or 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,6 @@ | ||
DOCKER_OPTS="-H=unix:///var/run/docker.sock -H=0.0.0.0:4242" | ||
DOCKER_OPTS="$DOCKER_OPTS --tlsverify --tlscacert=/etc/ssl/docker/ca.pem" | ||
DOCKER_OPTS="$DOCKER_OPTS --tlscert=/etc/ssl/docker/cert.pem --tlskey=/etc/ssl/docker/key.pem" | ||
DOCKER_OPTS="$DOCKER_OPTS -g /docker --insecure-registry registry.runnable.com --icc=false" | ||
DOCKER_OPTS="$DOCKER_OPTS --bip 172.17.42.1/16" | ||
DOCKER_OPTS="$DOCKER_OPTS --dns=172.17.42.1 --dns=8.8.8.8" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not make this
lineinfile
line above? that way we can maintain just variables, not the filesThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
variable are les secured than file. We can put files in vault. So we don't to put the variables file in vault. The whole purpose of vault is security, if we give the things that secure in form of variable. Is it secure?
If you still think that the way you me to code, I have no problem