Skip to content

Instantly share code, notes, and snippets.

@mross462
Created February 10, 2014 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mross462/57edf422e41d40b84e2e to your computer and use it in GitHub Desktop.
Save mross462/57edf422e41d40b84e2e to your computer and use it in GitHub Desktop.
Halite Cherrypy Config Setup
# tail /etc/salt/master
halite:
level: 'debug'
server: 'cherrypy'
host: '0.0.0.0'
port: '4040'
cors: False
tls: True
certpath: '/etc/pki/tls/certs/localhost.crt'
keypath: '/etc/pki/tls/certs/localhost.key'
pempath: '/etc/pki/tls/certs/localhost.pem'
# cat cherrypy.cfg
[global]
server.socket_host = '0.0.0.0'
server.socket_port = 4040
# ps -ef | grep cherry
root 28272 1 0 13:46 ? 00:00:10 /usr/bin/python /usr/bin/cherryd -c cherrypy.cfg
# curl -v localhost:4040
* About to connect() to localhost port 4040 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 4040 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: localhost:4040
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Transfer-Encoding: chunked
< Date: Mon, 10 Feb 2014 20:16:42 GMT
< Server: 0.0.0.0
<
* Connection #0 to host localhost left intact
* Closing connection #0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment