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

env: 1 #3

Open
mpdehaan opened this issue Dec 19, 2013 · 2 comments
Open

env: 1 #3

mpdehaan opened this issue Dec 19, 2013 · 2 comments

Comments

@mpdehaan
Copy link

Hi Benno,

I notice a lot of roles are setting "RUNLEVEL: 1" in the environment variable (env) and passing it to the apt module when installing packages.

Can you let me know why this is? I don't see this in other roles and am thinking this may confuse people, or be otherwise something we should handle in the apt module?

Thanks!

@bennojoy
Copy link
Owner

Hi Micheal,

This is because apt would prompt for configurations options from the user for many packages. There are many ways to circumvent it so that user won't be prompted and the installation can be automated setting the environment run level to 1 is one of the ways.

  • Benno

@mpdehaan
Copy link
Author

Yeah, so anything like this where there is something prompting should be
handled in the apt module already by the various flags we pass, so is a
package misbehaving and those flags are not sufficient?

If you are finding something that is not respecting that option, let's
figure it out, and only apply this on a case by case basis where the module
is in fact prompting.

People are starting to copy this pattern for no reason and I don't want it
to be a thing that people assume they have to do.

Let's patch the apt module to add this environment variable if we need to
and only add this parameter for the packages that need it.

On Sun, Dec 22, 2013 at 10:02 PM, Benno Joy [email protected]:

Hi Micheal,

This is because apt would prompt for configurations options from the user
for many packages. There are many ways to circumvent it so that user won't
be prompted and the installation can be automated setting the environment
run level to 1 is one of the ways.

  • Benno


Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-31102488
.

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

2 participants