Akm0d / slack-formula

salt-formula template filled with dummy content

Home Page:http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slack-formula

A SaltStack formula for slack. It will install slack, ensure that workspaces are joined, and will force a dark/light theme.

Commit message formatting is significant!!

Please see :ref:`How to contribute <CONTRIBUTING>` for more details.

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

This installs the slack package, manages the slack configuration file and then starts the associated slack service.

This state will install the slack package only.

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

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

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

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

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

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

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

This keep the slack package up to date and has a dependency on slack.package.install via include list.

This state will set the slack theme to light or dark and will trigger on a change in slack.package.install or slack.package.latest

Linux testing is done with kitchen-salt.

  • Chocolatey
  • Apt
$ 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.

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

Runs the inspec tests on the actual instance.

Removes the docker instance.

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

Gives you SSH access to the instance for manual testing.

About

salt-formula template filled with dummy content

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

License:Other


Languages

Language:JavaScript 26.4%Language:SaltStack 22.9%Language:Python 22.4%Language:Ruby 16.2%Language:HTML 6.7%Language:Shell 5.3%