File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
Register a service with haproxy
2
2
===============================
3
3
4
- 1 . Ensure that the ` salt-master ` and ` loadbalancer ` can be brought up with vagrant locally.
4
+ 1 . Ensure that the ` salt-master ` and ` loadbalancer ` can be brought up with vagrant locally:
5
5
``` console
6
6
vagrant up salt-master
7
7
vagrant up loadbalancer
8
8
```
9
- 2. In the local repository, create a new state/directory to manage files for your service
9
+ 2. In the local repository, create a new state/directory to manage files for your service:
10
10
```console
11
11
touch salt/base/salt.sls
12
12
```
13
- 3. Additionally, add an `nginx` configuration state and consul- service state that exposes that directory over HTTP
14
- - This configuration might look similar to an existing haproxy service like letsencrypt
13
+ 3. Additionally, add an `nginx` configuration state and ` consul` service state that exposes that directory over HTTP:
14
+ - This configuration might look similar to an existing haproxy service like ` letsencrypt`
15
15
```yaml
16
16
/etc/nginx/sites.d/letsencrypt-well-known.conf:
17
17
file.managed:
@@ -37,7 +37,7 @@ Register a service with haproxy
37
37
- pkg: consul-pkgs
38
38
```
39
39
40
- 4. In your local repository, navigate to `salt/base/config` and add an `nginx` configuration file.
40
+ 4. In your local repository, navigate to `salt/base/config` and add an `nginx` configuration file:
41
41
This configuration file might look similarly to the one of the `letsencrypt` service:
42
42
```nginx
43
43
server {
You can’t perform that action at this time.
0 commit comments