Comments (4)
Note it's not hard-coded, there's a non_root_user variable in the ansible roles which require this, but we could just assume $USER for this, or modify the roles to not assume a specific non_root_user
Agree we should probably at least validate this - it's mentioned in the README but perhaps we're missing some steps automating the setup of the user in the scripts?
from dev-scripts.
IMHO having a separate user is a good choice, an alternative could be a working dir, especially because the home/working-dir needs to be world-accessible.
We can even leave the stack user, the first thing to do should be validate if the user actually exist and has the correct permission, a create-user script can improve the automation.
A basic workflow could be:
- validate user, if it doesn't exist create it, or ask to create it
- validate the working-dir/home
- copy (download?) the repo to the home/working dir and switch to it
- switch to the new user
- start the process
In all of this, also considering the need of the config_$USER file, having a working-dir may be an easier solution.
from dev-scripts.
Note #36 solved one part of this, e.g open up the permissions on the stack homedir.
I do agree a working dir may be preferable though - and the tripleo-quickstart project where I took these roles from did exactly that (cloned everything to ~/.quickstart and ran things from there)
I was also trying to keep this simple though, e.g running the local roles vs cloning by default (which quickstart does), which makes development easier.
So perhaps the best approach is to just run everything as the local $USER but create a temporary directory, I'm open to either approach.
from dev-scripts.
I'm currently working on a change to use the local $USER and a working dir
We'll open a PR soon
from dev-scripts.
Related Issues (20)
- A cluster name that exceeds 14 characters causes an error during bridge creation HOT 5
- error TASK [libvirt : Create libvirt networks] HOT 5
- Deployment throws error with config OPENSHIFT_VERSION=4.5.0
- FATAL failed to fetch Master Machines: failed to load asset "Install Config": invalid "install-config.yaml" HOT 3
- Error when chown runs and user name differs from group name
- Use openshift-install coreos print-stream-json HOT 3
- Allow creating a custom number of extra disks HOT 2
- Align Ansible version to metal3-dev-env one HOT 2
- libvirt net ostestbm won't start after reboot HOT 2
- make agent fails with error AGENT_E2E_TEST_SCENARIO is missing
- lxml install needs devel packages for arm64
- The Cluster creation fails with Error: could not contact Ironic API: context deadline exceeded HOT 6
- openshift-sdn support is about to be removed from the installer
- Wrong command in ./01_install_requirements.sh script HOT 6
- Make sure NetworkManager-initscripts-updown is installed on RHEL9 host.
- Failure to create dualstack v6 primary cluster
- Error: failed to dial libvirt: dial unix /var/run/libvirt/libvirt-sock: connect: no such file or directory HOT 3
- 01_requirements.sh errors when `go` is pre-installed.
- Suspect yq doesn't always successfully install on 01_install_requirements.sh L100 HOT 3
- RHEL9: libvirt-sock file not found error during cluster bringup
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dev-scripts.