Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Using sudo in subsequent modules after bootstrap doesn't work if you didn't use sudo to bootstrap #13

Open
vallard opened this issue Mar 3, 2015 · 3 comments

Comments

@vallard
Copy link

vallard commented Mar 3, 2015

following the README.md I didn't use sudo to install the bootstrap and everything was created (pypy, bin) in the /home/core directory. On subsequent calls, I followed the README and used sudo to install docker-py with pip. This caused a problem because the /home/core/bin/pip file uses $HOME in the paths and when I used sudo it looked for those files in the /root directory.

I am using cores 557.2.0 image for openstack (latest I found on their website)

@hbokh
Copy link

hbokh commented Mar 24, 2015

Yep... To get around this I've forked this repo and made sure the Python-stuff is installed as root under /opt/.
See https://github.com/hbokh/ansible-coreos-bootstrap/commit/d0d12acd1d5994b1fee7b5700eecda8bf1fe3fff
The bootstrap-playbook now (also) has to be run with sudo: true, just as the example-playbook.

@vamonte
Copy link

vamonte commented Apr 2, 2015

+1. Same issue.

@defunctzombie
Copy link
Owner

This seems to be going back and forth. I remember some PR where root was removed, then new issues started happening. If it helps to document this better in the readme, I would accept a PR for that.

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

No branches or pull requests

4 participants