Skip to content
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

Add slackin ansible role, fix docker pip version bugs #89

Merged
merged 4 commits into from
Jun 16, 2017
Merged

Conversation

anadahz
Copy link
Contributor

@anadahz anadahz commented Feb 22, 2017

No description provided.

@hellais
Copy link
Member

hellais commented Mar 29, 2017

We should add the config.json to an encrypted ansible vault.

@hellais
Copy link
Member

hellais commented May 23, 2017

The letsencrypt autorenewal on this role is not working. See: https://slack.openobservatory.org/


- name: Check that Slackin website returns HTTP status 200
uri:
url: https://{{ slackin_domains.split(' ')[0] }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are variables defined? Can you, please, add slack_token to vault?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this role has been created and deployed long before the vault and now a number of things need to be changed. Feel free to give a hand and hopefully this can land in master sooner.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this role has been created and deployed long before the vault and now a number of things need to be changed. Feel free to give a hand and hopefully this can land in master sooner.

Merged master into this branch. You should now have vault support.

- "{{ slack_irc_dir }}:/slack-irc"

- name: Wait for services to start
pause: minutes=1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there anything wrong with wait_for ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is nothing wrong with wait_for but wait for what specifically?

- name: Create slack-irc-bridge config
template:
src: config.json.secrets
dest: "{{ slack_irc_dir }}/config.json"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is configuration template secret?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It contains the slack-irc-bridge bot credentials.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, we should put it in the vault.

@anadahz
Copy link
Contributor Author

anadahz commented May 29, 2017

This role is now ansible vault compliant.

@hellais
Copy link
Member

hellais commented Jun 16, 2017

LGTM!

BTW did you ever figure out why the cert was not automatically renewed last time?

@hellais hellais merged commit 2c6f623 into master Jun 16, 2017
@hellais hellais deleted the role/slackin branch June 16, 2017 14:20
@anadahz
Copy link
Contributor Author

anadahz commented Jun 19, 2017

BTW did you ever figure out why the cert was not automatically renewed last time?

The docker container of https-portal was unresponsive.

32353036386431386365393164336139633232376337313831666635386665333830353932343538
38656465383838386262623765363538346533646635326637363161663362633138323436623335
65383736343665636563633633386636306661346236613337643265643639326162613831663138
336533656561376336376131643033303036
Copy link
Contributor

@darkk darkk Jun 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hellais did this PR work for you before merging? My ansible-2.2.2 considers this yaml malformed :(

ERROR! Syntax Error while loading YAML.


The error appears to have been in '.../ansible/host_vars/slack.openobservatory.org/vault': line 6, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

Copy link
Member

@hellais hellais Jun 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad I was assuming it had been tested before being flagged as ready for review.

I checked and it seems that it contains in fact invalid YAML markup:

variable: |
{
  "foo": "bar"
}

instead of:

variable: |
  {
    "foo": "bar"
  }

I will push a fix to the integration branch.

@darkk
Copy link
Contributor

darkk commented Jun 24, 2017

^^ I moved the commit back to role/slackin branch to quick-fix master. I'll reintegrate it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants