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

Cleanup VMSS bootstrapping bash scripts #3515

Closed
wants to merge 39 commits into from

Commits on Apr 10, 2024

  1. Configuration menu
    Copy the full SHA
    c01b537 View commit details
    Browse the repository at this point in the history
  2. Move dnf package and repo operations into function, move all service …

    …configuration into a function
    s-fairchild committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    ebe9b26 View commit details
    Browse the repository at this point in the history
  3. Move repository configuration higher in sequence of events, make unch…

    …anging variables readonly
    s-fairchild committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    0f49861 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    91bcccd View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2024

  1. move packages to install and rpm keys to import into arrays

    This will make adding new packages and keys easier
    s-fairchild committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    1e35003 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eb62848 View commit details
    Browse the repository at this point in the history
  3. Pass dnf packages and rpm keys to function calls via nameref to allow…

    … reuse
    
    Editing the packages and keys passed will allow for easier modification later.
    This also allows for function reuse.
    s-fairchild committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    104bb2e View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2024

  1. Add wait for all rpm related transactions to avoid rpm database corru…

    …ption
    
    Add starting log message for each function call
    rpm database corruption has been seen in testing, and Prod deployments due to concurrent rpm database operations between rpm and dnf. wait is needed due to this.
    remove ERR trap, we aren't attempting to trap any specific errors yet.
    s-fairchild committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    3643a06 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

  1. Increase dnf & rpm retry time to 1 minute, 5 minutes total

    Pass wait time as a nameref variable to allow easier modification
    s-fairchild committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    23f1a33 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0b8104f View commit details
    Browse the repository at this point in the history
  3. Add usage statement

    s-fairchild committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    fd6b96e View commit details
    Browse the repository at this point in the history
  4. Add az login -i comment found in gatewayVMSS.sh, change variable synt…

    …ex to snake case for consistency
    s-fairchild committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    051f633 View commit details
    Browse the repository at this point in the history
  5. Port changes made in rpVMSS.sh to gatewayVMSS.sh

    Make gateway log directory to be passed in to functions where it is needed, this allows the value to be set in one location.
    
    Move retry steps into a single retry function call
    
    This is to reduce code duplication
    Move configure_fiewall_rules file creation to use write_file
    Correct accept_ra_conf variable name spelling
    s-fairchild committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    15f71f9 View commit details
    Browse the repository at this point in the history
  6. Pass usage options via nameref variable that is also used by getops

    Move docker file creation to more logical location
    s-fairchild committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    e899ae1 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Configuration menu
    Copy the full SHA
    df11d61 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2024

  1. Configuration menu
    Copy the full SHA
    ff7c372 View commit details
    Browse the repository at this point in the history
  2. WIP Move log rotate configuration to common.sh

    Need to allow addition of drop in files as well for gatewayVMSS.sh
    s-fairchild committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    9dd98cb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2f1d24b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7aeda49 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6354b8e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d55340c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d4eac32 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c8639d3 View commit details
    Browse the repository at this point in the history
  9. WIP correct aro-portal.service, aro-rp.service and fluentbit.service …

    …file writing
    
    The config file was being written twice
    s-fairchild committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    e91476a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    84cfcef View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2024

  1. Configuration menu
    Copy the full SHA
    28b42a0 View commit details
    Browse the repository at this point in the history
  2. Correct options in parse_run_options to avoid curcuilar nameref, pass…

    … PROXY_IMAGE to configure_service_proxy function
    s-fairchild committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    9160d50 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    347450e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8786bf1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8603637 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2024

  1. Configuration menu
    Copy the full SHA
    f29f2fa View commit details
    Browse the repository at this point in the history
  2. Import stash

    s-fairchild committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    b0d90d6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d914aef View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2024

  1. Configuration menu
    Copy the full SHA
    429c281 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5a3ab70 View commit details
    Browse the repository at this point in the history
  3. WIP configure certificates on gateway, rp, devProxy VMSSes

    Move create_required_dirs to be the first step that runs, to ensure they
    exist when needed. This was mostly for the devProxyVMSS
    s-fairchild committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    f289e16 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    63867bb View commit details
    Browse the repository at this point in the history
  5. Move systemd service configurations into functions

    Move dnf package and repo operations into function, move all service configuration into a function
    Move repository configuration higher in sequence of events, make unchanging variables readonly
    Add write_file function to cleanup creation of new files, appending to existing files
    move packages to install and rpm keys to import into arrays, this will make adding new packages and keys easier
    Add retry loop for rpm repo key imports, remove erroneous package from install_pkgs array
    Pass dnf packages and rpm keys to function calls via nameref to allow
    reuse, This also allows for function reuse.
    Add wait for all rpm related transactions to avoid rpm database corruption
    Add starting log message for each function call
    rpm database corruption has been seen in testing, and Prod deployments due to concurrent rpm database operations between rpm and dnf. wait is needed due to this.
    remove ERR trap, we aren't attempting to trap any specific errors yet.
    Increase dnf & rpm retry time to 1 minute, 5 minutes total
    Pass wait time as a nameref variable to allow easier modification
    Add parse_run_options to run individual steps for testing
    Add az login -i comment found in gatewayVMSS.sh, change variable syntex to snake case for consistency
    Port changes made in rpVMSS.sh to gatewayVMSS.sh
    Make gateway log directory to be passed in to functions where it is needed, this allows the value to be set in one location.
    Move retry steps into a single retry function call
    This is to reduce code duplication
    Move configure_fiewall_rules file creation to use write_file
    Correct accept_ra_conf variable name spelling
    Pass usage options via nameref variable that is also used by getops
    Move docker file creation to more logical location
    s-fairchild committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    bdf8d12 View commit details
    Browse the repository at this point in the history
  6. Merge branch 's-fairchild/improve-bash-bootstrap-shared' into s-fairc…

    …hild/improve-bash-bootstrap
    
    Move all shared code into functions located in commonVMSS.sh to allow
    for reusability
    s-fairchild committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    3791a47 View commit details
    Browse the repository at this point in the history