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

normalize temp dir/file usage (remote_tmp, etc) #31022

Closed
bcoca opened this issue Sep 28, 2017 · 5 comments · Fixed by #31677
Closed

normalize temp dir/file usage (remote_tmp, etc) #31022

bcoca opened this issue Sep 28, 2017 · 5 comments · Fixed by #31677
Labels
affects_2.5 This issue/PR affects Ansible v2.5 feature This issue/PR relates to a feature request. has_pr This issue has an associated PR. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects

Comments

@bcoca
Copy link
Member

bcoca commented Sep 28, 2017

All subsystems should use same temp dirs (ansiballz, shell+action, modules, async)
Temp dirs should be more configurable (right now they are global, should be host specific)

In doing this we should address/fix the following issues:
#20886
#27699 ansiballz not using remote_tmp
#17908 (not main issue, but having per host configurable remote_tmp would mitigate)
#30064 git module creates script in /tmp which does not work on 'no exec systems'
#30074 (not main issue, giving 'url using' module a predictable tmp to write to)
#25831 read only /tmp
#25794
#22203
#21562
#18391 (mostly by allowing per host 'world readable tmp files')
#13876
#16046
#11937
#28318
#29019
#33079
#31617
Related prs:
#28716

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

core

ANSIBLE VERSION
2.5
@bcoca bcoca added this to TODO in 2.5 Sep 28, 2017
@ansibot ansibot added affects_2.5 This issue/PR affects Ansible v2.5 feature_idea needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Sep 28, 2017
@bcoca bcoca removed the needs_triage Needs a first human triage before being processed. label Sep 28, 2017
@abadger
Copy link
Contributor

abadger commented Oct 4, 2017

#11937 => Can't use default location of .ansible_async file because it is read-only.

@alikins
Copy link
Contributor

alikins commented Oct 4, 2017

#28716 pr for 'ansible_async' in remote_tmp

@alikins alikins changed the title normalize temp dir/file usage normalize temp dir/file usage (remote_tmp, etc) Oct 4, 2017
@alikins
Copy link
Contributor

alikins commented Oct 4, 2017

More refs:
#28318
#29019

@sivel
Copy link
Member

sivel commented Oct 26, 2017

Another ref: #31617

In cloud-init it seems $HOME is not set, and that impacts the ability to use ~. cloud-init would require special treatment, as to not depend on either, or to:

  1. use a remote_tmp without $HOME or ~
  2. set $HOME

Of additional note, python falls back to using the pwd module to determine the homedir, if $HOME isn't set. More info in #31617 (comment)

@thaumos thaumos moved this from TO DO to In Progress in 2.5 Oct 30, 2017
abugher pushed a commit to abugher/fleet that referenced this issue Jan 14, 2018
…s a bug about unconditionally using /tmp instead of respecting remote_tmp, and some quirky behavior regarding the ownership of a temporary file used when become_user is a limited user. Also [apt] is added to hosts.ini, and dst has been given the apt role.
@bcoca bcoca reopened this Feb 9, 2018
@ansibot ansibot added feature This issue/PR relates to a feature request. and removed feature_idea labels Mar 2, 2018
@ansibot ansibot added the has_pr This issue has an associated PR. label Jul 27, 2019
@s-hertel
Copy link
Contributor

Since there are only a couple issues open, we'll handle the rest as individual tickets.

@ansible ansible locked and limited conversation to collaborators Feb 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.5 This issue/PR affects Ansible v2.5 feature This issue/PR relates to a feature request. has_pr This issue has an associated PR. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
No open projects
2.5
In Progress
Development

Successfully merging a pull request may close this issue.

6 participants