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

Explicit install_user setting #37

Open
dokterbob opened this issue Nov 4, 2022 · 0 comments
Open

Explicit install_user setting #37

dokterbob opened this issue Nov 4, 2022 · 0 comments

Comments

@dokterbob
Copy link
Member

Builds/unzips etc. are currently executed under the user who does the login.
As we work towards multi-user deploy this gives problems (e.g. Oleh makes a deploy and now the repo folders are owned by him). Instead, we could sudo to an explicit install user.

Concept:

  • Common setting install_user and a single playbook to set up this user and a group for it.
  • Role-specific settings, e.g. crawler_install_user.
  • Playbooks set role-specific settings based on common settings.

Example of error:

TASK [services/crawler : clone ipfs-search] ***************************************************************************************************************************************
fatal: [booth]: FAILED! => {"changed": false, "msg": "Failed to set a new url https://github.com/ipfs-search/ipfs-search.git for origin:  fatal: detected dubious ownership in repository at '/tmp/ipfs-crawler'\nTo add an exception for this directory, call:\n\n\tgit config --global --add safe.directory /tmp/ipfs-crawler\n"}
drbob@booth:~$ ls -la /tmp/ipfs-crawler/
total 23532
drwxrwxr-x 12 oleh_p oleh_p     4096 Oct 28 22:50 .
drwxrwxrwt 19 root   root      28672 Nov  4 09:16 ..
-rw-rw-r--  1 oleh_p oleh_p      336 Oct 28 20:56 .codeclimate.yml
drwxrwxr-x  2 oleh_p oleh_p     4096 Oct 28 20:56 commands
[...]
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

No branches or pull requests

1 participant