<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5428319927954643598</id><updated>2012-02-16T12:30:39.489-07:00</updated><category term='Python'/><category term='Salt'/><category term='Windows'/><title type='text'>Utah_Dave</title><subtitle type='html'>My experiences with software and hardware.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://utahdave.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5428319927954643598/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://utahdave.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Utah_Dave</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://bp1.blogger.com/_X_Z2YE0FX8A/R7jtV1wIWsI/AAAAAAAABMM/ax536xUJ_5k/S220/David.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5428319927954643598.post-256005462313705358</id><published>2011-12-30T19:31:00.000-07:00</published><updated>2011-12-30T19:31:02.729-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Salt'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>Set up Salt minion on Windows XP</title><content type='html'>I've been doing some work getting Salt working on Windows. You can find out more about Salt here: &lt;a href="http://www.saltstack.org/"&gt;www.saltstack.org&lt;/a&gt;&amp;nbsp; and the source code is here:&amp;nbsp;&lt;a href="https://github.com/saltstack/salt"&gt;https://github.com/saltstack/salt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0in;"&gt;Installing Salt from source on Windows XP 32 bit&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;The download location is found underneath the name of the file to install &lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;Items in double quotes should be run from the command line&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Install Python 2.7.x&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;add &lt;a href="file:///C:/python27"&gt;c:\python27&lt;/a&gt;  to your path&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Install vcredist_x86.exe&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;a href="http://www.slproweb.com/products/Win32OpenSSL.html"&gt;http://www.slproweb.com/products/Win32OpenSSL.html&lt;/a&gt;     &lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Install Win32OpenSSL-1_0_0e.exe&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;a href="http://www.slproweb.com/products/Win32OpenSSL.html"&gt;http://www.slproweb.com/products/Win32OpenSSL.html&lt;/a&gt;     &lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Choose first option to install in   Windows system directory&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Install  pyzmq-2.1.11.win32-py2.7.msi&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;a href="https://github.com/zeromq/pyzmq/downloads"&gt;https://github.com/zeromq/pyzmq/downloads&lt;/a&gt;     &lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Install  M2Crypto-0.21.1.win32-py2.7.msi&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;a href="http://chandlerproject.org/Projects/MeTooCrypto#Downloads"&gt;http://chandlerproject.org/Projects/MeTooCrypto#Downloads&lt;/a&gt;     &lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Install  pycrypto-2.3.win32-py2.7.msi&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;a href="http://www.voidspace.org.uk/python/modules.shtml#pycrypto"&gt;http://www.voidspace.org.uk/python/modules.shtml#pycrypto&lt;/a&gt;     &lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Install  PyYAML-3.10.win32-py2.7.msi&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;a href="http://pyyaml.org/wiki/PyYAML"&gt;http://pyyaml.org/wiki/PyYAML&lt;/a&gt;     &lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Install  Cython-0.15.1.win32-py2.79.exe&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/#cython"&gt;http://www.lfd.uci.edu/~gohlke/pythonlibs/#cython&lt;/a&gt;     &lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;install distribute_setup.py&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;http://python-distribute.org/distribute_setup.py&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;“python distribute_setup.py”&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Install pip&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;https://raw.github.com/pypa/pip/master/contrib/get-pip.py&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;“python get-pip.py"&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Add c:\python27\scripts to your  path&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Open new terminal window (cmd)&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Install jinja2&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;“pip install jinja2”&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Change directory to your copy of  the latest Salt source from github&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Install Salt&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;“python setup.py install”&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Edit  c:\etc\salt\minon&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;master: ipaddress or hostname of   your salt-master&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;master_port: 4506&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;root_dir: &lt;a href="file:///C:/"&gt;c:\&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;pki_dir: /etc/salt/pki&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;cachedir: /var/cache/salt&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;renderer: yaml_jinja&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;open_mode: False&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;multiprocessing: False&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Start the salt-minion&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Change directory to   c:\python27\scripts&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;"python salt-minion"&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;On the salt-master accept the new  minion's key&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;"sudo salt-key -A" &amp;nbsp; (This accepts   all unaccepted keys. If you're concerned about security just accept   the key for this specific minion)&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Test that your minion is  responding&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;on the salt-master run “sudo   salt '*' test.ping"&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;You should get the following   response:  {'your minion hostname': True}&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="margin-bottom: 0in;"&gt;Jump for joy!!&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;I've run through this several times and it works. Please let me know if you run into any issues.&lt;br /&gt;&lt;br /&gt;Support for Windows in Salt is still very new and not all features work with Windows yet.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5428319927954643598-256005462313705358?l=utahdave.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://utahdave.blogspot.com/feeds/256005462313705358/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5428319927954643598&amp;postID=256005462313705358' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5428319927954643598/posts/default/256005462313705358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5428319927954643598/posts/default/256005462313705358'/><link rel='alternate' type='text/html' href='http://utahdave.blogspot.com/2011/12/set-up-salt-minion-on-windows-xp.html' title='Set up Salt minion on Windows XP'/><author><name>Utah_Dave</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='30' src='http://bp1.blogger.com/_X_Z2YE0FX8A/R7jtV1wIWsI/AAAAAAAABMM/ax536xUJ_5k/S220/David.jpg'/></author><thr:total>0</thr:total></entry></feed>
