mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-17 11:41:45 +00:00
Update for leanpub preview
This commit is contained in:
@@ -8,3 +8,77 @@ ha-docker-swarm/design.md
|
|||||||
ha-docker-swarm/nodes.md
|
ha-docker-swarm/nodes.md
|
||||||
ha-docker-swarm/shared-storage-ceph.md
|
ha-docker-swarm/shared-storage-ceph.md
|
||||||
ha-docker-swarm/shared-storage-gluster.md
|
ha-docker-swarm/shared-storage-gluster.md
|
||||||
|
ha-docker-swarm/keepalived.md
|
||||||
|
ha-docker-swarm/docker-swarm-mode.md
|
||||||
|
ha-docker-swarm/traefik.md
|
||||||
|
ha-docker-swarm/traefik-forward-auth.md
|
||||||
|
ha-docker-swarm/traefik-forward-auth/keycloak.md
|
||||||
|
ha-docker-swarm/registry.md
|
||||||
|
|
||||||
|
sections/chefs-favorites-docker.md
|
||||||
|
recipes/autopirate.md
|
||||||
|
recipes/autopirate/sabnzbd.md
|
||||||
|
recipes/autopirate/nzbget.md
|
||||||
|
recipes/autopirate/rtorrent.md
|
||||||
|
recipes/autopirate/sonarr.md
|
||||||
|
recipes/autopirate/radarr.md
|
||||||
|
recipes/autopirate/mylar.md
|
||||||
|
recipes/autopirate/lazylibrarian.md
|
||||||
|
recipes/autopirate/headphones.md
|
||||||
|
recipes/autopirate/lidarr.md
|
||||||
|
recipes/autopirate/nzbhydra.md
|
||||||
|
recipes/autopirate/nzbhydra2.md
|
||||||
|
recipes/autopirate/ombi.md
|
||||||
|
recipes/autopirate/jackett.md
|
||||||
|
recipes/autopirate/heimdall.md
|
||||||
|
recipes/autopirate/end.md
|
||||||
|
|
||||||
|
recipes/duplicity.md
|
||||||
|
recipes/elkarbackup.md
|
||||||
|
recipes/emby.md
|
||||||
|
recipes/homeassistant.md
|
||||||
|
recipes/homeassistant/ibeacon.md
|
||||||
|
recipes/huginn.md
|
||||||
|
recipes/kanboard.md
|
||||||
|
recipes/miniflux.md
|
||||||
|
recipes/munin.md
|
||||||
|
recipes/nextcloud.md
|
||||||
|
recipes/owntracks.md
|
||||||
|
recipes/phpipam.md
|
||||||
|
recipes/plex.md
|
||||||
|
recipes/privatebin.md
|
||||||
|
recipes/swarmprom.md
|
||||||
|
|
||||||
|
sections/menu-docker.md
|
||||||
|
recipes/bitwarden.md
|
||||||
|
recipes/bookstack.md
|
||||||
|
recipes/calibre-web.md
|
||||||
|
recipes/collabora-online.md
|
||||||
|
recipes/ghost.md
|
||||||
|
recipes/gitlab.md
|
||||||
|
recipes/gitlab-runner.md
|
||||||
|
recipes/gollum.md
|
||||||
|
recipes/instapy.md
|
||||||
|
recipes/keycloak.md
|
||||||
|
recipes/keycloak/create-user.md
|
||||||
|
recipes/keycloak/authenticate-against-openldap.md
|
||||||
|
recipes/keycloak/setup-oidc-provider.md
|
||||||
|
recipes/openldap.md
|
||||||
|
recipes/mail.md
|
||||||
|
recipes/minio.md
|
||||||
|
recipes/piwik.md
|
||||||
|
recipes/portainer.md
|
||||||
|
recipes/realms.md
|
||||||
|
recipes/tiny-tiny-rss.md
|
||||||
|
recipes/wallabag.md
|
||||||
|
recipes/wekan.md
|
||||||
|
recipes/wetty.md
|
||||||
|
|
||||||
|
sections/reference.md
|
||||||
|
reference/oauth_proxy.md
|
||||||
|
reference/data_layout.md
|
||||||
|
reference/networks.md
|
||||||
|
reference/containers.md
|
||||||
|
reference/git-docker.md
|
||||||
|
reference/openvpn.md
|
||||||
|
reference/troubleshooting.md
|
||||||
@@ -78,6 +78,7 @@ From the node, run
|
|||||||
```gluster peer probe <other host>```
|
```gluster peer probe <other host>```
|
||||||
|
|
||||||
Example output:
|
Example output:
|
||||||
|
|
||||||
```
|
```
|
||||||
[root@glusterfs-server /]# gluster peer probe ds1
|
[root@glusterfs-server /]# gluster peer probe ds1
|
||||||
peer probe: success.
|
peer probe: success.
|
||||||
@@ -87,6 +88,7 @@ peer probe: success.
|
|||||||
Run ```gluster peer status``` on both nodes to confirm that they're properly connected to each other:
|
Run ```gluster peer status``` on both nodes to confirm that they're properly connected to each other:
|
||||||
|
|
||||||
Example output:
|
Example output:
|
||||||
|
|
||||||
```
|
```
|
||||||
[root@glusterfs-server /]# gluster peer status
|
[root@glusterfs-server /]# gluster peer status
|
||||||
Number of Peers: 1
|
Number of Peers: 1
|
||||||
@@ -101,7 +103,8 @@ State: Peer in Cluster (Connected)
|
|||||||
|
|
||||||
Now we create a *replicated volume* out of our individual "bricks".
|
Now we create a *replicated volume* out of our individual "bricks".
|
||||||
|
|
||||||
Create the gluster volume by running
|
Create the gluster volume by running:
|
||||||
|
|
||||||
```
|
```
|
||||||
gluster volume create gv0 replica 2 \
|
gluster volume create gv0 replica 2 \
|
||||||
server1:/var/no-direct-write-here/brick1 \
|
server1:/var/no-direct-write-here/brick1 \
|
||||||
@@ -109,6 +112,7 @@ gluster volume create gv0 replica 2 \
|
|||||||
```
|
```
|
||||||
|
|
||||||
Example output:
|
Example output:
|
||||||
|
|
||||||
```
|
```
|
||||||
[root@glusterfs-server /]# gluster volume create gv0 replica 2 ds1:/var/no-direct-write-here/brick1/gv0 ds3:/var/no-direct-write-here/brick1/gv0
|
[root@glusterfs-server /]# gluster volume create gv0 replica 2 ds1:/var/no-direct-write-here/brick1/gv0 ds3:/var/no-direct-write-here/brick1/gv0
|
||||||
volume create: gv0: success: please start the volume to access data
|
volume create: gv0: success: please start the volume to access data
|
||||||
@@ -130,7 +134,6 @@ From one other host, run ```docker exec -it glusterfs-server bash``` to shell in
|
|||||||
### Mount gluster volume
|
### Mount gluster volume
|
||||||
|
|
||||||
On the host (i.e., outside of the container - type ```exit``` if you're still shelled in), create a mountpoint for the data, by running ```mkdir /var/data```, add an entry to fstab to ensure the volume is auto-mounted on boot, and ensure the volume is actually _mounted_ if there's a network / boot delay getting access to the gluster volume:
|
On the host (i.e., outside of the container - type ```exit``` if you're still shelled in), create a mountpoint for the data, by running ```mkdir /var/data```, add an entry to fstab to ensure the volume is auto-mounted on boot, and ensure the volume is actually _mounted_ if there's a network / boot delay getting access to the gluster volume:
|
||||||
|
|
||||||
```
|
```
|
||||||
mkdir /var/data
|
mkdir /var/data
|
||||||
MYHOST=`hostname -s`
|
MYHOST=`hostname -s`
|
||||||
@@ -140,7 +143,8 @@ echo "$MYHOST:/gv0 /var/data glusterfs defaults,_netde
|
|||||||
mount -a
|
mount -a
|
||||||
```
|
```
|
||||||
|
|
||||||
For some reason, my nodes won't auto-mount this volume on boot. I even tried the trickery below, but they stubbornly refuse to automount.
|
For some reason, my nodes won't auto-mount this volume on boot. I even tried the trickery below, but they stubbornly refuse to automount:
|
||||||
|
|
||||||
```
|
```
|
||||||
echo -e "\n\n# Give GlusterFS 10s to start before \
|
echo -e "\n\n# Give GlusterFS 10s to start before \
|
||||||
mounting\nsleep 10s && mount -a" >> /etc/rc.local
|
mounting\nsleep 10s && mount -a" >> /etc/rc.local
|
||||||
|
|||||||
@@ -17,7 +17,9 @@ do
|
|||||||
sed -i '/.gif/d' $file
|
sed -i '/.gif/d' $file
|
||||||
|
|
||||||
# Strip out mkdocs admonitions
|
# Strip out mkdocs admonitions
|
||||||
sed -i '/\!\!\!/d' $file
|
sed -i '/!!!/d' $file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# strip emojis
|
# strip emojis
|
||||||
tr -cd '\11\12\15\40-\176' < $file > $file-clean
|
tr -cd '\11\12\15\40-\176' < $file > $file-clean
|
||||||
|
|||||||
Reference in New Issue
Block a user