GithubHelp home page GithubHelp logo

Comments (4)

hardys avatar hardys commented on July 30, 2024

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.

elfosardo avatar elfosardo commented on July 30, 2024

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.

hardys avatar hardys commented on July 30, 2024

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.

elfosardo avatar elfosardo commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.