posts:salt-stack: Use rc-service and mention particular-id install
authorW. Trevor King <wking@tremily.us>
Fri, 21 Feb 2014 19:39:21 +0000 (11:39 -0800)
committerW. Trevor King <wking@tremily.us>
Fri, 21 Feb 2014 19:39:21 +0000 (11:39 -0800)
Also remove a tremily reference and replace it with the generic
example.net.

posts/Salt_Stack.mdwn

index 10c0b9267fad428ba0a723756d60fd7288334d24..d8912f4ca03462b7988a71fc9358ed1b14ed5aab 100644 (file)
@@ -12,8 +12,8 @@ master.  After setting up [[BIND]] so `salt` (the [default master
 name][master-name]) resolves to your development box, you should be
 able to run:
 
-    # /etc/init.d/salt-master start
-    # /etc/init.d/salk-minion restart
+    # rc-service salt-master start
+    # rc-service salt-minion restart
     # salt-key -L
     Accepted Keys:
     Unaccepted Keys:
@@ -95,7 +95,7 @@ You can also install a particular sub-state on a particular minon
 (again, I'm showing the testing version):
 
     # salt 'devbox.example.net' state.sls python,ssh.server test=True
-    nott.tremily.us:
+    devbox.example.net:
     ----------
         State: - pkg
         Name:      openssh
@@ -119,6 +119,11 @@ The comments (Package category missing for…) mean that the
 [versions][3009] [of][3019] Salt (0.12+), which [require fully
 qualified package names][ebuild-cat].
 
+You can also install a particular [ID declaration][id] on a particular
+minon (again, I'm showing the testing version):
+
+    # salt 'devbox.example.net' state.sls python,ssh.server test=True
+
 For single-box testing, you can also skip the master node, running
 commands on a [masterless minion][masterless] by using `salt-call
 --local` instead of `salt '<target>'` in your Salt invocations:
@@ -156,6 +161,7 @@ haven't looked into that yet.
 [3009]: https://github.com/saltstack/salt/pull/3009
 [3019]: https://github.com/saltstack/salt/pull/3019
 [ebuild-cat]: http://docs.saltstack.com/ref/modules/all/salt.modules.ebuild.html
+[id]: http://docs.saltstack.com/ref/states/highstate.html#id-declaration
 [masterless]: http://docs.saltstack.com/topics/tutorials/quickstart.html
 [nonroot]: https://salt.readthedocs.org/en/v0.17.0/topics/nonroot.html