saltstack-formulas / alcali-formula

Saltstack formula to install Alcali: a web based tool(GUI) for monitoring and administrating Saltstack Salt.
https://alcali.dev
MIT License
11 stars 20 forks source link

Update alcali default revision and allow git reset #18

Closed Ataye closed 2 years ago

Ataye commented 2 years ago

PR progress checklist (to be filled in by reviewers)


What type of PR is this?

Primary type

Secondary type

Does this PR introduce a BREAKING CHANGE?

No.

Related issues and/or pull requests

Describe the changes you're proposing

If like me you add the formula as-is it installs and old version of alcali. After changing the revision in the pillar errors were reported that a git force_reset should be performed, but regular options could not achieve this.

These commits add the force_reset option to the pillar file, and also set the default alcali version to a newer revision.

Pillar / config required to test the proposed changes

old config:

alcali:
  deploy:
    repository: https://github.com/latenighttales/alcali.git
    rev: 2019.2
    user: alcali
    group: alcali
    directory: /opt/alcali
    runtime: python3

new config (after changing revision):

alcali:
  deploy:
    repository: https://github.com/latenighttales/alcali.git
    rev: v3003.1.0
    user: alcali
    group: alcali
    directory: /opt/alcali
    runtime: python3
    force_reset: True

Debug log showing how the proposed changes work

Documentation checklist

Testing checklist

Additional context

sticky-note commented 2 years ago

Thanks for the changes @Ataye :)