I have a server with a "standalone" minion installed and configured. I've been able to make lots of changes to my server with salt but I can't figure out how to configure my ssh server.
Here's what I currently have:
$ cat sshd.sls
include:
- openssh
sshd_config:
Port: 1234
I have also downloaded the openssh
formula into my /srv/formulas
directory and updated my file_roots
in my /etc/salt/minion
dir:
file_roots:
base:
- /srv/salt
- /srv/formulas/openssh-formula
And finally I have the following in my top.sls
file:
base:
'*':
- users
- sshd
Then I get this when I apply my state:
$ sudo salt-call state.apply --local
local:
Data failed to compile:
----------
State 'sshd_config' in SLS 'sshd' is not formed as a list
I've looked at the documentation for the openssh formula but I don't see how I'm misusing the API. What am I missing?