[root@salt1 /var/salt]# svcs | grep salt-master
online 17:50:57 svc:/network/salt-master:default
[root@salt1 /var/salt]# svccfg export svc:/network/salt-master | egrep 'exec_method|config_dir'
[root@salt1 /var/salt]# ptree | grep salt-master
17563 /opt/local/bin/python2.7 /opt/local/bin/salt-master -c /opt/local/etc/salt
17577 /opt/local/bin/python2.7 /opt/local/bin/salt-master -c /opt/local/etc/salt
17580 /opt/local/bin/python2.7 /opt/local/bin/salt-master -c /opt/local/etc/salt
17581 /opt/local/bin/python2.7 /opt/local/bin/salt-master -c /opt/local/etc/salt
17582 /opt/local/bin/python2.7 /opt/local/bin/salt-master -c /opt/local/etc/salt
17583 /opt/local/bin/python2.7 /opt/local/bin/salt-master -c /opt/local/etc/salt
17584 /opt/local/bin/python2.7 /opt/local/bin/salt-master -c /opt/local/etc/salt
17585 /opt/local/bin/python2.7 /opt/local/bin/salt-master -c /opt/local/etc/salt
17586 /opt/local/bin/python2.7 /opt/local/bin/salt-master -c /opt/local/etc/salt
17587 /opt/local/bin/python2.7 /opt/local/bin/salt-master -c /opt/local/etc/salt
17588 /opt/local/bin/python2.7 /opt/local/bin/salt-master -c /opt/local/etc/salt
17589 /opt/local/bin/python2.7 /opt/local/bin/salt-master -c /opt/local/etc/salt
/opt/local/etc/salt/master:
...
file_roots:
base:
- /var/salt/file-roots
- /var/salt/file-roots/services
- /var/salt/file-roots/states
...
[root@salt1 /var/salt]# salt soldier5.unaen.org state.apply smartos.smf.smartos_setup.import
soldier5.unaen.org:
----------
ID: /opt/custom/smf/smartos_setup.xml
Function: file.managed
Result: True
Comment: File /opt/custom/smf/smartos_setup.xml is in the correct state
Started: 18:37:17.498812
Duration: 38.586 ms
Changes:
----------
ID: /opt/custom/share/svc/smartos_setup.sh
Function: file.managed
Result: True
Comment: File /opt/custom/share/svc/smartos_setup.sh is in the correct state
Started: 18:37:17.537518
Duration: 28.765 ms
Changes:
----------
ID: import-smartos_setup
Function: cmd.run
Name: /usr/sbin/svccfg import -V /opt/custom/smf/smartos_setup.xml
Result: True
Comment: Command "/usr/sbin/svccfg import -V /opt/custom/smf/smartos_setup.xml" run
Started: 18:37:17.566461
Duration: 172.733 ms
Changes:
----------
pid:
53737
retcode:
0
stderr:
stdout:
Summary for soldier5.unaen.org
------------
Succeeded: 3 (changed=1)
Failed: 0
------------
Total states run: 3
Total run time: 240.084 ms
[root@salt1 /var/salt]# salt soldier5.unaen.org state.apply smartos.smf.smartos_setup
soldier5.unaen.org:
----------
ID: smartos_setup
Function: service.running
Name: smartos/setup
Result: False
Comment: The following requisites were not found:
onfail:
sls: smartos.smf.smartos_setup.import
Changes:
Summary for soldier5.unaen.org
------------
Succeeded: 0
Failed: 1
------------
Total states run: 1
Total run time: 0.000 ms
ERROR: Minions returned with non-zero exit code