A SaltStack formula that is empty. It has dummy content to help with a quick start on a new formula and it serves as a style guide.
Table of Contents
Meta-state (This is a state that includes other states).
This installs the ganesha package, manages the ganesha configuration file and then starts the associated ganesha service.
This state will install the ganesha package only.
This state will configure the ganesha service and has a dependency on ganesha.install
via include list.
This state will start the ganesha service and has a dependency on ganesha.config
via include list.
Meta-state (This is a state that includes other states).
this state will undo everything performed in the ganesha
meta-state in reverse order, i.e.
stops the service,
removes the configuration file and
then uninstalls the package.
This state will stop the ganesha service and disable it at boot time.
This state will remove the configuration of the ganesha service and has a
dependency on ganesha.service.clean
via include list.
This state will remove the ganesha package and has a depency on
ganesha.config.clean
via include list.
Meta-state (This is a state that includes other states).
This state installs a subcomponent configuration file before configuring and starting the ganesha service.
This state will configure the ganesha subcomponent and has a
dependency on ganesha.config
via include list.
This state will remove the configuration of the ganesha subcomponent
and reload the ganesha service by a dependency on
ganesha.service.running
via include list and watch_in
requisite.
Linux testing is done with kitchen-salt
.
- 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
.
Creates the docker instance and runs the ganesha
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.