-
Notifications
You must be signed in to change notification settings - Fork 0
Cleanup n lineinfile #197
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
Cleanup n lineinfile #197
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
ad716dd
add line in file for services, normalize other roles
anandkumarpatel 72d3f09
hardcode docks
anandkumarpatel 3690d77
check to see if env is defined for services
anandkumarpatel 6dde743
rename url to hostname and some host to host_addresses
anandkumarpatel 9be2cac
fix redis host
anandkumarpatel 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
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,17 +1,14 @@ | ||
| name: "charon" | ||
| app_name: "charon" | ||
| app_name: "{{ name }}" | ||
| app_repo: "git@github.com:CodeNow/{{ name }}.git" | ||
| hosted_ports: ["53"] | ||
|
|
||
| redis_host: "{{ hostvars[groups['redis'][0]]['ansible_default_ipv4']['address'] }}" | ||
| redis_port: 6379 | ||
| hosted_ports: ["{{ charon_port }}"] | ||
|
|
||
| enviroment_vars: | ||
| API_HOST: "api.{{ domain }}" | ||
| API_HOST: "{{ api_hostname }}" | ||
| API_TOKEN: "51c61b779f3de616a9639cfc44a22c79fbd8e328" | ||
| DATADOG_HOST: "{{ datadog_host }}" | ||
| DATADOG_HOST: "{{ datadog_host_address }}" | ||
| DATADOG_PORT: "{{ datadog_port }}" | ||
| DOMAIN_FILTER: "{{ user_content_domain }}" | ||
| PORT: "{{ hosted_ports[0] }}" | ||
| REDIS_HOST: "{{ redis_host }}" | ||
| REDIS_HOST: "{{ redis_host_address }}" | ||
| REDIS_PORT: "{{ redis_port }}" |
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 |
|---|---|---|
|
|
@@ -4,16 +4,11 @@ name: docker-listener | |
| app_name: "docker-listener" | ||
| app_repo: "git@github.com:CodeNow/docker-listener.git" | ||
|
|
||
| redis_host: "{{ hostvars[groups['redis'][0]]['ansible_default_ipv4']['address'] }}" | ||
| redis_port: 6379 | ||
|
|
||
| enviroment_vars: | ||
| DOCKER_CERT_PATH: "/opt/ssl/docker/{{ name }}" | ||
| HOST_TAGS: "{{ host_tags | default('default') }}" | ||
| LOGGLY_TOKEN: "{{ loggly_token }}" | ||
| RABBITMQ_HOSTNAME: "{% if rabbit_host is defined %}{{ rabbit_host }}{% else %}{{ hostvars[groups['rabbitmq'][0]]['ansible_default_ipv4']['address'] }}{% endif %}" | ||
| RABBITMQ_HOSTNAME: "{{ rabbit_host_address }}" | ||
| RABBITMQ_PASSWORD: "{{ rabbit_password }}" | ||
| RABBITMQ_PORT: "{{ rabbit_port }}" | ||
| RABBITMQ_USERNAME: "{{ rabbit_username }}" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. uhhh.....
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do not need this as it should not change. |
||
| REDIS_IPADDRESS: "{{ redis_host }}" | ||
| REDIS_IPADDRESS: "{{ redis_host_address }}" | ||
| REDIS_PORT: "{{ redis_port }}" | ||
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,19 +1,19 @@ | ||
| # container_kill_start settings | ||
| name: hipache | ||
| redis_host: "{{ hostvars[groups['redis'][0]]['ansible_default_ipv4']['address'] }}" | ||
| redis_port: 6379 | ||
|
|
||
| container_image: registry.runnable.com/runnable/hipache | ||
| container_tag: latest | ||
| hosted_ports: [ 80, 443 ] | ||
|
|
||
| container_run_opts: > | ||
| -d | ||
| -p 80:80 | ||
| -p 443:443 | ||
| -v /opt/hipache-conf:/host:rw | ||
| -v /etc/ssl/certs/{{ domain }}:/etc/ssl/certs/{{ domain }} | ||
| -v /etc/ssl/private/{{ domain }}.key:/etc/ssl/private/{{ domain }}.key | ||
|
|
||
| container_run_args: /usr/local/bin/hipache --config /host/config.json | ||
| hosted_ports: [ 80, 443 ] | ||
|
|
||
| # hipache settings | ||
| retry_on_error: 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 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
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.
OMG YAY!