Skip to content

Commit d2fe36a

Browse files
authored
Merge pull request #70 from uyuni-project/rename_use_ssl
Rename the USE_SSL flag
2 parents 304fbe1 + ec6250e commit d2fe36a

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Servers are registered and can be managed from the Hub just like normal SUSE Man
99
## Getting Started
1010

1111
### Requirements
12+
1213
- one central SUSE Manager/Uyuni Server (hereinafter: "Hub")
1314
- two or more peripheral Servers registered to the Hub as Salt clients
1415
- any number of end clients registered to peripheral Servers
@@ -29,12 +30,13 @@ Install the package `hub-xmlrpc-api`, available from SUSE Manager 4.1 and Uyuni
2930
- `HUB_API_URL`: URL to the Hub XMLRPC API endpoint
3031
- `HUB_CONNECT_TIMEOUT`: maximum number of seconds to wait for a response when connecting to a Server
3132
- `HUB_REQUEST_TIMEOUT`: maximum numbr of seconds to wait for a response when calling a Server method
32-
- `USE_SSL`: use https instead of plain http for communicating with peripheral Servers
33+
- `HUB_CONNECT_USING_SSL`: use https instead of plain http for communicating with peripheral Servers
3334

34-
Default values should suffice in most settings.
35+
Default values should suffice in most settings.
3536

3637
### Note
37-
In order to use https to connect to peripheral Servers, in addition to setting `USE_SSL` flag to true, SSL certificates for all the peripheral Servers need to be installed on the machine where the `hub-xmlrpc-api` service runs. This can be achieved by copying the `RHN-ORG-TRUSTED-SSL-CERT` certificate file from each peripheral Server's `pub` directory (`https://<server-url>/pub/`) to `/etc/pki/trust/anchors/` and then running the `update-ca-certificates` command.
38+
39+
In order to use https to connect to peripheral Servers, in addition to setting `HUB_CONNECT_USING_SSL` flag to true, SSL certificates for all the peripheral Servers need to be installed on the machine where the `hub-xmlrpc-api` service runs. This can be achieved by copying the `RHN-ORG-TRUSTED-SSL-CERT` certificate file from each peripheral Server's `pub` directory (`https://<server-url>/pub/`) to `/etc/pki/trust/anchors/` and then running the `update-ca-certificates` command.
3840

3941

4042
## Usage

config/config.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ type Config struct {
1919
func NewConfig() *Config {
2020

2121
k.Load(confmap.Provider(map[string]interface{}{
22-
"HUB_API_URL": "http://localhost/rpc/api",
23-
"HUB_CONNECT_TIMEOUT": 10,
24-
"HUB_REQUEST_TIMEOUT": 10,
25-
"USE_SSL": false,
22+
"HUB_API_URL": "http://localhost/rpc/api",
23+
"HUB_CONNECT_TIMEOUT": 10,
24+
"HUB_REQUEST_TIMEOUT": 10,
25+
"HUB_CONNECT_USING_SSL": false,
2626
}, "."), nil)
2727

2828
k.Load(env.Provider("HUB_", ".", nil), nil)
@@ -31,6 +31,6 @@ func NewConfig() *Config {
3131
HubAPIURL: k.String("HUB_API_URL"),
3232
ConnectTimeout: k.Int("HUB_CONNECT_TIMEOUT"),
3333
RequestTimeout: k.Int("HUB_REQUEST_TIMEOUT"),
34-
UseSSL: k.Bool("USE_SSL"),
34+
UseSSL: k.Bool("HUB_CONNECT_USING_SSL"),
3535
}
3636
}

release/hub.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
HUB_API_URL=http://localhost/rpc/api
22
HUB_CONNECT_TIMEOUT=10
33
HUB_REQUEST_TIMEOUT=10
4-
USE_SSL=false
4+
HUB_CONNECT_USING_SSL=false

0 commit comments

Comments
 (0)