From: W. Trevor King Date: Fri, 21 Feb 2014 19:39:21 +0000 (-0800) Subject: posts:salt-stack: Use rc-service and mention particular-id install X-Git-Url: http://git.tremily.us/?p=blog.git;a=commitdiff_plain;h=ce9ff77727d14a6cf0d41eb81826b5c27de67f38 posts:salt-stack: Use rc-service and mention particular-id install Also remove a tremily reference and replace it with the generic example.net. --- diff --git a/posts/Salt_Stack.mdwn b/posts/Salt_Stack.mdwn index 10c0b92..d8912f4 100644 --- a/posts/Salt_Stack.mdwn +++ b/posts/Salt_Stack.mdwn @@ -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 ''` 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