Bug 1377874 - Use retry_files_save_path in ansible install guide
Summary: Use retry_files_save_path in ansible install guide
Keywords:
Status: CLOSED EOL
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Documentation
Version: 3.2.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Vikram Goyal
QA Contact: Vikram Goyal
Vikram Goyal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-20 21:11 UTC by Peter Larsen
Modified: 2019-08-10 06:40 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-10 06:40:32 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Peter Larsen 2016-09-20 21:11:08 UTC
Document URL: https://docs.openshift.com/enterprise/3.2/install_config/install/advanced_install.html#configuring-ansible

Section Number and Name: 
All - or intro

Describe the issue: 
When running ansible-playbook, a .retry file is placed in the same directory as the run-book, unless retry_files_save_path or retry_files_enabled=false. The latter option disables the capability to retry/resume an installation so that doesn't sound like a good option to use. 

If running the installer as a non-root user, like ec2-user on AWS, and having setup the inventory file to use sudo, the playbook will fail as it attempts to write a file to the directory owned and writable only by root. 

The quick-installer disables this feature for this exact reason, but it's still an issue.

The guide should include a section that explains this process as a non-root user, and explain a best practice for installation - ie. when and when not to use root as the install user.

Suggestions for improvement: 

Add a section that describes a typical ansible.cfg file setup to be used with the install. Or have the ansible.cfg file default from install time to set the retry_files_save_path to ~/.ansible-retry - the current value is commented out and not active. 

There should under all circumstances be a section that explains when and when not to run ansible-playbook as root, and how the installation process may be slightly different depending on the choice. 

Additional information:


Note You need to log in before you can comment on or make changes to this bug.