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

Update the rooms playbook #9

Closed
wants to merge 3 commits into from
Closed

Conversation

chereseeriepa
Copy link
Contributor

  • move rooms2 into rooms.yml and ssb-room2 into ssb-roon

@chereseeriepa chereseeriepa self-assigned this Nov 16, 2022
docker exec go-ssb-room cmd/insert-user/insert-user -repo {{ room_repo_location }} -role member -password {{ member_password }} {{ graphql_key }}
ignore_errors: yes

# docker-compose exec -T go-ssb-room cmd/insert-user/insert-user -repo {{ room_repo_location }} -role member -password {{ member_password }} {{ graphql_key }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

rm

@@ -0,0 +1,5 @@
---
# - include: frontend.yml
Copy link
Contributor Author

Choose a reason for hiding this comment

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

need to uncomment these, these are all steps for deployment and shouldnt be run when updating a deployment.

NOTE: frontend.yml isnt needed yet. There are still steps that one needs in order to work, we can use the vue files already on the rooms repo instead

blobs_endpoint: http://localhost:26835
blobs_dir: /get
room_repo_location: /ssb-go-room-secrets
member_password: admin
Copy link
Contributor Author

Choose a reason for hiding this comment

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

🔥

TODO: move this to a prompt or something. This is what sets the password for the graphql servers login to the room


- name: Add graphql key as a room member
shell: |
docker exec go-ssb-room cmd/insert-user/insert-user -repo {{ room_repo_location }} -role member -password {{ member_password }} {{ graphql_key }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

🔥

Maybe make the graphql user an admin?

executable: /bin/bash


# TODO: copy dist over to go-ssb-room/web/assets
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO

Copy link
Contributor Author

Choose a reason for hiding this comment

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

repo: https://github.com/planetary-social/go-ssb-room.git
dest: go-ssb-room
force: yes
version: vue
Copy link
Contributor Author

@chereseeriepa chereseeriepa Dec 1, 2022

Choose a reason for hiding this comment

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

🔥 this is checking out a branch because thats where all the work for the frontend currently is, just note the frontend files on this branch need to be rebuilt for every room planetary-social/go-ssb-room#3 as they require their own environment variables

blobs_endpoint: http://localhost:26835
blobs_dir: /get
room_repo_location: /ssb-go-room-secrets
member_password: admin
Copy link
Contributor Author

Choose a reason for hiding this comment

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

missing magic_token=???

each room needs to have their own magic token

@chereseeriepa
Copy link
Contributor Author

Closing as this has now been done in #12

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.

update ansible playbook for building go-ssb-rooms and view front end
1 participant