Open ghost opened 8 years ago
I will test saltpad with the latest rc release, but I don't recommend to use a rc in your production system. In the mean time, you can still use saltpad with rest_cherrypy and this deployment instructions: https://github.com/Lothiraldan/saltpad#rest_cherrypy-single-app-page-deployment
guys. seems it doesnt work with latest saltstack. i am tryign too use last devel of saltstack (i am realy new to this)... @Lothiraldan can you please advise, what debug enable in order to see what is reason for this "network error" ?
root@38c763e58f9b:/opt/salt# salt-master --version
salt-master 2016.3.0-477-gaf7593a (Boron)
root@38c763e58f9b:/opt/salt# salt-api --version
salt-api 2016.3.0-477-gaf7593a (Boron)
root@38c763e58f9b:/opt/salt#
saltstack & calls to minion works... also salt-api authentification works :
root@38c763e58f9b:/opt/salt# curl -i -H accept=application/json -d username=saltmasteruser -d password=12345 -d eauth=pam http://localhost:8000/login
HTTP/1.1 200 OK
Content-Length: 204
Access-Control-Expose-Headers: GET, POST
Vary: Accept-Encoding
Server: CherryPy/5.3.0
Allow: GET, HEAD, POST
Access-Control-Allow-Credentials: true
Date: Sun, 01 May 2016 16:04:49 GMT
Access-Control-Allow-Origin: *
X-Auth-Token: ef7d7a3a180caa8d99f230bce4a19e0c45fb0f41
Content-Type: application/json
Set-Cookie: session_id=ef7d7a3a180caa8d99f230bce4a19e0c45fb0f41; expires=Mon, 02 May 2016 02:04:49 GMT; Path=/
{"return": [{"perms": [".*", "@runner", "@wheel"], "start": 1462118689.789648, "token": "ef7d7a3a180caa8d99f230bce4a19e0c45fb0f41", "expire": 1462161889.789649, "user": "saltmasteruser", "eauth": "pam"}]}root@38c763e58f9b:/opt/salt
but unfortunately, i am not able tomake saltpad working. i am getting following error in browser..
here are configs i am using... ###############################
rest_cherrypy:
port: 8000
host: 0.0.0.0
static: /code/static
static_path: /static
app: /code/index.html
app_path: /saltpad
disable_ssl: true
websockets: True
cors_origin: "*"
external_auth:
pam:
saltmasteruser:
- .*
- '@runner'
- '@wheel'
########################
root@38c763e58f9b:/opt/salt# more /opt/saltpad/dist/static/settings.json
{
"API_URL": "local.local:8000",
"SECURE_HTTP": false,
"templates": {
"basic": {
"description": "Basic template",
"matcher": "glob",
"target": "*",
"moduleFunction": "test.fib",
"arguments": {
"num": 10
}
},
"version": {
"description": "Basic version",
"matcher": "glob",
"target": "Celeste",
"moduleFunction": "test.version",
"arguments": {}
}
},
"EAUTH": "pam",
"FLAVOUR": "rest_cherrypy",
"PATH_PREFIX": "/saltpad/"
}
oh and here is nginx, i am using to access saltpad:
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /opt/saltpad/dist/;
index index.html;
server_name saltpad;
location / {
try_files $uri /index.html;
}
}
@mraky You might want to adjust your nginx config to
location /saltpad {
try_files $uri /index.html;
}
My understanding is that the webserver location needs to match the PATH_PREFIX from settings.json.
2016.3 has been released, it seems salpad not compatible, job result is not display well
I wanted to know if the new release v2016.3.0rc2 is compatible with saltpad using rest_tornado api?
I currently use 2015.8.8 but would upgrade to 2016.3.0rc2 if this is possible...
Regards.