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

Inventory migration #92

Merged
merged 11 commits into from
Jul 28, 2024
Merged

Inventory migration #92

merged 11 commits into from
Jul 28, 2024

Conversation

ahembree
Copy link
Owner

This moves variables from the vars/custom directory to the (hopefully) more correct inventory/group_vars/all directory.

This also requires the inventory file be recreated in yml format (personal preference) in inventory/hosts.yml.

This PR will add the following features:

  • Ability to scale to multiple hosts since you will now be able to specify host-level variables in a custom inventory file
  • Remove the need for the --connection local argument in the Makefile since the connection is now handled in the inventory file
  • Additional make migrate-vars command to automatically copy the previous variable files to the new inventory/group_vars/all directory and create a symlink from vars/custom to point to the new location so the old directory will still work for now
  • Removes unnecessary variable include task in the playbook since group_vars are auto-loaded
  • Also adds sane-default for a variable used when deploying the custom monitoring scripts since this would usually error out in check_mode

@ahembree ahembree added the enhancement New feature or request label Jul 28, 2024
@ahembree ahembree merged commit 6a24cc7 into master Jul 28, 2024
4 checks passed
@ahembree ahembree deleted the inventory-migration branch July 28, 2024 20:31
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.

1 participant