summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2023-06-21 11:26:31 +0300
committerPaul Buetow <pbuetow@mimecast.com>2023-06-21 11:30:42 +0300
commitd3e98fb73a5966736f9c5a9479bad27eff2cccd3 (patch)
treef9ca5277d201ec2db68e37ae1528aed353ece9a5
parent3e3641d85716fae2890163e7afd8d79478dae4ef (diff)
rename samples to examples
-rw-r--r--Makefile2
-rw-r--r--doc/installation.md18
-rwxr-xr-xexamples/check_dserver.sh.example (renamed from samples/check_dserver.sh.sample)0
-rw-r--r--examples/dserver-update-keycache.service.example (renamed from samples/dserver-update-keycache.service.sample)0
-rw-r--r--examples/dserver-update-keycache.timer.example (renamed from samples/dserver-update-keycache.timer.sample)0
-rw-r--r--examples/dserver.service.example (renamed from samples/dserver.service.sample)0
-rw-r--r--examples/dtail.json.example (renamed from samples/dtail.json.sample)0
-rwxr-xr-xexamples/dtail.schema.json (renamed from samples/dtail.schema.json)0
-rw-r--r--examples/update_key_cache.sh.example (renamed from samples/update_key_cache.sh.sample)0
9 files changed, 10 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 680cef6..d764051 100644
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ clean:
test -f $$cmd && rm $$cmd; \
done
vet:
- find . -type d | egrep -v '(./samples|./log|./doc)' | while read dir; do \
+ find . -type d | egrep -v '(./examples|./log|./doc)' | while read dir; do \
echo ${GO} vet $$dir; \
${GO} vet $$dir; \
done
diff --git a/doc/installation.md b/doc/installation.md
index 0f6143b..a2c271a 100644
--- a/doc/installation.md
+++ b/doc/installation.md
@@ -53,18 +53,18 @@ uid=1001(dserver) 1001=670(dserver) groups=1001(dserver)
% sudo chown -R dserver:dserver /var/run/dserver
```
-4. Install the ``dtail.json`` config to ``/etc/dserver/dtail.json``. An example can be found [here](../samples/dtail.json.sample).
+4. Install the ``dtail.json`` config to ``/etc/dserver/dtail.json``. An example can be found [here](../examples/dtail.json.example).
```console
% sudo mkdir /etc/dserver
-% curl https://raw.githubusercontent.com/mimecast/dtail/master/samples/dtail.json.sample |
+% curl https://raw.githubusercontent.com/mimecast/dtail/master/examples/dtail.json.example |
sudo tee /etc/dserver/dtail.json
```
-5. It is recommended to configure DTail server as a service to ``systemd``. An example unit file for ``systemd`` can be found [here](../samples/dserver.service.sample).
+5. It is recommended to configure DTail server as a service to ``systemd``. An example unit file for ``systemd`` can be found [here](../examples/dserver.service.example).
```console
-% curl https://raw.githubusercontent.com/mimecast/dtail/master/samples/dserver.service.sample |
+% curl https://raw.githubusercontent.com/mimecast/dtail/master/examples/dserver.service.example |
sudo tee /etc/systemd/system/dserver.service
% sudo systemctl daemon-reload
% sudo systemctl enable dserver
@@ -97,15 +97,15 @@ To start the DTail server via ``systemd`` run:
The DTail server now runs as a ``systemd`` service under system user ``dserver``. However, the system user ``dserver`` has no permissions to read the SSH public keys from ``/home/USER/.ssh/authorized_keys``. Therefore, no user would be able to establish an SSH session to DTail server. As an alternative path DTail server also checks for public SSH key files in ``/var/run/dserver/cache/USER.authorized_keys``.
-It is recommended to execute [update_key_cache.sh](../samples/update_key_cache.sh.sample) periodically to update the key cache. In case you manage your public SSH keys via Puppet you could subscribe the script to corresponding module. Or alternatively just configure a cron job or a systemd timer to run every once in a while, e.g. every 30 minutes:
+It is recommended to execute [update_key_cache.sh](../examples/update_key_cache.sh.example) periodically to update the key cache. In case you manage your public SSH keys via Puppet you could subscribe the script to corresponding module. Or alternatively just configure a cron job or a systemd timer to run every once in a while, e.g. every 30 minutes:
```console
-% curl https://raw.githubusercontent.com/mimecast/dtail/master/samples/update_key_cache.sh.sample |
+% curl https://raw.githubusercontent.com/mimecast/dtail/master/examples/update_key_cache.sh.example |
sudo tee /var/run/dserver/update_key_cache.sh
% sudo chmod 755 /var/run/dserver/update_key_cache.sh
-% curl https://raw.githubusercontent.com/mimecast/dtail/master/samples/dserver-update-keycache.service.sample |
+% curl https://raw.githubusercontent.com/mimecast/dtail/master/examples/dserver-update-keycache.service.example |
sudo tee /etc/systemd/system/dserver-update-keycache.service
-% curl https://raw.githubusercontent.com/mimecast/dtail/master/samples/dserver-update-keycache.timer.sample |
+% curl https://raw.githubusercontent.com/mimecast/dtail/master/examples/dserver-update-keycache.timer.example |
sudo tee /etc/systemd/system/dserver-update-keycache.timer
% sudo systemctl daemon-reload
% sudo systemctl start dserver-update-keycache.service
@@ -119,7 +119,7 @@ Now you should be able to use DTail client like outlined in the [Quick Starting
# Monitor it
-To verify that DTail server is up and running and functioning as expected, you should configure the Nagios check [check_dserver.sh](../samples/check_dserver.sh.sample) in your monitoring system. The check has to be executed locally on the server (e.g. via NRPE). How to configure the monitoring system in detail is out of scope of this guide.
+To verify that DTail server is up and running and functioning as expected, you should configure the Nagios check [check_dserver.sh](../examples/check_dserver.sh.example) in your monitoring system. The check has to be executed locally on the server (e.g. via NRPE). How to configure the monitoring system in detail is out of scope of this guide.
```console
% ./check_dserver.sh
diff --git a/samples/check_dserver.sh.sample b/examples/check_dserver.sh.example
index 77f01f0..77f01f0 100755
--- a/samples/check_dserver.sh.sample
+++ b/examples/check_dserver.sh.example
diff --git a/samples/dserver-update-keycache.service.sample b/examples/dserver-update-keycache.service.example
index 7e6144c..7e6144c 100644
--- a/samples/dserver-update-keycache.service.sample
+++ b/examples/dserver-update-keycache.service.example
diff --git a/samples/dserver-update-keycache.timer.sample b/examples/dserver-update-keycache.timer.example
index e7158ca..e7158ca 100644
--- a/samples/dserver-update-keycache.timer.sample
+++ b/examples/dserver-update-keycache.timer.example
diff --git a/samples/dserver.service.sample b/examples/dserver.service.example
index c5e5e59..c5e5e59 100644
--- a/samples/dserver.service.sample
+++ b/examples/dserver.service.example
diff --git a/samples/dtail.json.sample b/examples/dtail.json.example
index 26eb8a1..26eb8a1 100644
--- a/samples/dtail.json.sample
+++ b/examples/dtail.json.example
diff --git a/samples/dtail.schema.json b/examples/dtail.schema.json
index 44fb4c2..44fb4c2 100755
--- a/samples/dtail.schema.json
+++ b/examples/dtail.schema.json
diff --git a/samples/update_key_cache.sh.sample b/examples/update_key_cache.sh.example
index 9817f04..9817f04 100644
--- a/samples/update_key_cache.sh.sample
+++ b/examples/update_key_cache.sh.example