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

Install conf json #85

Merged
merged 5 commits into from
Mar 3, 2024
Merged

Install conf json #85

merged 5 commits into from
Mar 3, 2024

Conversation

TechDufus
Copy link
Owner

This allows users to use the traditional multitoolbox options if needed without needing to reconfigure this file. It will be deployed automatically.

This pull request introduces changes to the Ansible playbook to automate the deployment of the install_conf.json configuration file to a specific user's home directory.

The most important changes are:

  • roles/common/tasks/common-installFluxInstallConf.yml: A new Ansible task has been created to copy the install_conf.json file from the global.fluxPath to the home directory of the user specified in global.user. The file permissions are set to 0644 and the file owner is set to global.user.

  • roles/common/tasks/main.yml: The newly created task common-installFluxInstallConf.yml is included in the main playbook. This task is tagged with common-installFluxInstallConf, common, and all. The task is also set to run with escalated privileges (become: true).

  • roles/common/templates/install_conf.json: A new template for the install_conf.json file has been added. This file contains various configuration settings, such as import_settings, prvkey, outpoint, index, ssh_port, zelid, kda_address, firewall_disable, bootstrap_url, bootstrap_zip_del, swapon, use_old_chain, node_label, discord, ping, telegram_alert, telegram_bot_token, telegram_chat_id, eps_limit, zelflux_update, zelcash_update, zelbench_update, upnp_port, and gateway_ip. These settings are populated using Ansible variables.

@TechDufus TechDufus requested a review from JKTUNING March 3, 2024 03:36
@TechDufus TechDufus added the enhancement New feature or request label Mar 3, 2024
@TechDufus TechDufus linked an issue Mar 3, 2024 that may be closed by this pull request
@TechDufus TechDufus force-pushed the install_conf-json branch from 93af751 to 1890c82 Compare March 3, 2024 05:12
Copy link
Collaborator

@JKTUNING JKTUNING left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TechDufus TechDufus merged commit 1555bf4 into main Mar 3, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE_REQUEST] Add deployment of install_conf.json
2 participants