Skip to content

Commit 72a3c8e

Browse files
authored
Merge pull request #20 from kallies/update_readme
Move README to Markdown file and update content
2 parents 0f5d917 + dc3df15 commit 72a3c8e

File tree

2 files changed

+43
-22
lines changed

2 files changed

+43
-22
lines changed

README

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
README for apt-dater-host
2+
=========================
3+
4+
Setup hosts managed by apt-dater:
5+
---------------------------------
6+
7+
You need a SSH server and `sudo` installed. Create a user (`the-user` in this
8+
example) which will be used to install updates (using root is NOT recommended).
9+
10+
useradd the-user
11+
12+
Modify the sudoers rules, e.g. `/etc/sudoers` or `/etc/sudoers.d/apt-dater-host`:
13+
14+
Defaults env_reset,env_keep=MAINTAINER
15+
the-user ALL=NOPASSWD: /usr/bin/apt-get, /usr/sbin/needrestart
16+
17+
For non apt-based distributions you need to replace
18+
`/usr/bin/apt-get` with the equivalent, e.g. `/usr/bin/yum`.
19+
20+
You can verify the setup by calling
21+
22+
sudo -l -U the-user
23+
24+
Additional steps for a manual `apt-dater-host` installation:
25+
------------------------------------------------------------
26+
27+
Put `apt-dater-host` on the managed host (folder must be present in `$PATH` of `the-user`).
28+
29+
Put `apt-dater-host.conf` to `$CFGFILE` (default is `/etc/apt-dater-host.conf`).
30+
31+
At your management server:
32+
--------------------------
33+
34+
Create a user on your management server which perform updates on your
35+
hosts.
36+
37+
Generate a SSH keypair:
38+
39+
ssh-keygen [..] -f ~/.ssh/apt-dater
40+
41+
Distribute the public key(s) e.g.:
42+
43+
ssh-copy-id -i ~/.ssh/apt-dater.pub the-user@managed-host

0 commit comments

Comments
 (0)