I have been working on puppet to salt migration of nginx module with manifest files: init.pp, package.pp, conf.pp and service.pp. The init.pp file contains below lines:
init.pp:
class nginx {
class {'nginx::package': } ->
class {'nginx::conf': } ->
class {'nginx::service': }
}
I was able to implement order of execution with -> between manifest files.
So for salt, I tried the below to implement order of execution for .sls files as shown below but didn't work during run time.
init.sls:
include:
- package.sls
- conf.sls
- service.sls
In case of salt I know it allows ordering/relationships between states, but can someone suggest me on how to implement order of execution between salt state files (package.sls, conf.sls and service.sls) ?