Quellcode durchsuchen

Clarifies environments, adds non-passwordless option

It was unclear where do to the commands. Not everyone will know ansible should not be run from the server. Also, the "optional" passwordless option was not actually optional, given how this was written.
OKNoah vor 8 Jahren
Ursprung
Commit
a148858a6e
1 geänderte Dateien mit 17 neuen und 3 gelöschten Zeilen
  1. 17
    3
      README.md

+ 17
- 3
README.md Datei anzeigen

63
 Installation
63
 Installation
64
 ------------
64
 ------------
65
 
65
 
66
+## On the remote server
67
+
68
+The following steps are done on the remote server by `ssh`ing into it and running these commands.
69
+
66
 ### 1. Install required packages
70
 ### 1. Install required packages
67
 
71
 
68
     apt-get install sudo
72
     apt-get install sudo
96
     chown deploy:deploy /home/deploy -R
100
     chown deploy:deploy /home/deploy -R
97
     echo 'deploy ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/deploy
101
     echo 'deploy ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/deploy
98
 
102
 
99
-Your new account will be automatically set up for passwordless `sudo`.
103
+Your new account will be automatically set up for passwordless `sudo`. Or you can just add your `deploy` user to the sudo group.
104
+
105
+    adduser deploy sudo
106
+
107
+## On your local machine
108
+
109
+Ansible (the toll setting up your server) runs locally on your computer and sends commands to the remote server. Download this repository somewhere on your machine, either through `Clone or Download > Download ZIP` above, `wget`, or `git` as below
110
+    
111
+    git https://github.com/sovereign/sovereign.git
100
 
112
 
101
 ### 4. Configure your installation
113
 ### 4. Configure your installation
102
 
114
 
103
-Modify the settings in `group_vars/sovereign` to your liking. If you want to see how they’re used in context, just search for the corresponding string.
115
+Modify the settings in the `group_vars/sovereign` folder to your liking. If you want to see how they’re used in context, just search for the corresponding string.
104
 All of the variables in `group_vars/sovereign` must be set for sovereign to function.
116
 All of the variables in `group_vars/sovereign` must be set for sovereign to function.
105
 
117
 
106
 Setting `password_hash` for your mail users is a bit tricky. You can generate one using [doveadm-pw](http://wiki2.dovecot.org/Tools/Doveadm/Pw).
118
 Setting `password_hash` for your mail users is a bit tricky. You can generate one using [doveadm-pw](http://wiki2.dovecot.org/Tools/Doveadm/Pw).
172
 
184
 
173
 To run the whole dang thing:
185
 To run the whole dang thing:
174
 
186
 
175
-    ansible-playbook -i ./hosts site.yml
187
+    ansible-playbook -i --ask-sudo-pass ./hosts site.yml
188
+    
189
+If you chose to make a passwordless sudo deploy users, you can omit the `--ask-sudo-pass` argument.
176
 
190
 
177
 To run just one or more piece, use tags. I try to tag all my includes for easy isolated development. For example, to focus in on your firewall setup:
191
 To run just one or more piece, use tags. I try to tag all my includes for easy isolated development. For example, to focus in on your firewall setup:
178
 
192
 

Laden…
Abbrechen
Speichern