/alcali-formula

Saltstack formula to install Alcali: a web based tool(GUI) for monitoring and administrating Saltstack Salt.

Primary LanguageSaltStackMIT LicenseMIT

⚠️ THIS FORMULA IS NO LONGER MAINTAINED. PLEASE USE https://github.com/saltstack-formulas/alcali-formula INSTEAD.

Alcali formula

Build Status

A SaltStack formula to install and configure Alcali.

Alcali is a web based tool for monitoring and administrating Saltstack Salt.

Available states

Testing

Requirements

Alcali

Meta-state (This is a state that includes other states).

This create the alcali user, installs the alcali package, manages the alcali configuration file and then starts the associated alcali service.

alcali.user

This state will create the alcali user only.

alcali.package

This state will install the alcali package only.

alcali.config

This state will configure the alcali service and has a dependency on alcali.install via include list.

alcali.service

This state will start the alcali service and has a dependency on alcali.config via include list.

alcali.clean

Meta-state (This is a state that includes other states).

this state will undo everything performed in the alcali meta-state in reverse order, i.e. stops the service, removes the configuration file, uninstalls the package and remove the user.

alcali.user.clean

This state will remove the alcali user.

alcali.service.clean

This state will stop the alcali service and disable it at boot time.

alcali.config.clean

This state will remove the configuration of the alcali service and has a dependency on alcali.service.clean via include list.

alcali.package.clean

This state will remove the alcali package and has a dependency on alcali.config.clean via include list.

Testing

Linux testing is done with kitchen-salt.

Requirements

  • Ruby
  • Docker
$ gem install bundler
$ bundle install
$ bin/kitchen test [platform]

Where [platform] is the platform name defined in kitchen.yml, e.g. debian-9-2019-2-py3.

bin/kitchen converge

Creates the docker instance and runs the template main state, ready for testing.

bin/kitchen verify

Runs the inspec tests on the actual instance.

bin/kitchen destroy

Removes the docker instance.

bin/kitchen test

Runs all of the stages above in one go: i.e. destroy + converge + verify + destroy.

bin/kitchen login

Gives you SSH access to the instance for manual testing.

TODO:

  • Add multiple install options.

Contribute

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

If you like this project, consider donating:

via GitHub Sponsors, or

ko-fi

Image: Jean-Philippe WMFr, derivative work : User:Benoit Rochon CC BY-SA 4.0