https://github.com/ipython/salt-states-nbviewer
Salt States for nbviewer
https://github.com/ipython/salt-states-nbviewer
Last synced: 2 months ago
JSON representation
Salt States for nbviewer
- Host: GitHub
- URL: https://github.com/ipython/salt-states-nbviewer
- Owner: ipython
- License: bsd-3-clause
- Archived: true
- Created: 2013-10-07T16:25:38.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-17T19:06:33.000Z (over 11 years ago)
- Last Synced: 2025-01-01T00:32:18.548Z (12 months ago)
- Language: Scheme
- Homepage:
- Size: 877 KB
- Stars: 18
- Watchers: 12
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
salt-nbviewer
=============
Salt States for [nbviewer](http://github.com/ipython/nbviewer)
Simply installs nbviewer and its dependencies.
# Configuring the master
Make sure to install gitfs dependencies on the master first (and not fail silently).
```
$ apt-get install -y git python-pip
$ pip install gitpython
```
Setup the fileserver backend to use git and use this salt state. Simply add these lines to `/etc/salt/master`.
```
fileserver_backend:
- git
gitfs_remotes:
- https://github.com/rgbkrk/salt-states-nbviewer.git
```
If doing local development, set `gitfs_remotes` to the local clone:
```
fileserver_backend:
- git
gitfs_remotes:
- file:///code/salt-states-nbviewer
```
Alternatively, just pull it down to where you want to reference it.
```
fileserver_backend:
- roots
file_roots:
base:
- /srv/salt/salt-states-nbviewer
```
You will probably need to restart the salt master after making these changes. `service salt-master restart`.