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

add option to configure log directory #191

Merged
merged 1 commit into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions roles/aap_setup_install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The following input variables are available:
|`controller_hostname/username/password/validate_certs`|none|see below|hostname and credentials of the installed controller, necessary to test previous installation|see the 'redhat\_cop.controller\_configuration' collection|
|`ah_hostname/username/password/validate_certs`|none|see below|hostname and credentials of the installed automation hub, necessary to test previous installation|see the 'redhat\_cop.ah\_configuration' collection|
|`aap_setup_inst_force`|false|no|a boolean deciding if the installation should proceed even if the controller and the automation hub are already installed|see [defaults/main.yml](defaults/main.yml)|
|`aap_setup_inst_log_dir`|none|no|directory where setup.sh stores the log file|'/tmp/'|

Note that the `controller_` and `ah_` variables are only required if the variable `aap_setup_inst_force` is _not_ true _and_ if the respective service is due to be installed.

Expand Down
3 changes: 3 additions & 0 deletions roles/aap_setup_install/templates/setup_sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
{%- for varsfile in __extra_vars_files.results %}
-e @{{ varsfile.dest }}
{%- endfor -%}
{%- if aap_setup_inst_log_dir is defined %}
-p {{ aap_setup_inst_log_dir }}
{%- endif -%}