forked from openstack-k8s-operators/octavia-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP Initial support for TLS in image-upload
- Loading branch information
1 parent
2787761
commit a6432cf
Showing
7 changed files
with
176 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
set -xe | ||
|
||
TLS_SRC_DIR=/var/lib/config-data/tls | ||
TLS_DST_DIR=/var/lib/config-data/merged | ||
|
||
if [ -e $TLS_SRC_DIR/certs/internal.crt ]; then | ||
cp $TLS_SRC_DIR/certs/internal.crt $TLS_DST_DIR/ | ||
chown default $TLS_DST_DIR/internal.crt | ||
chmod 400 $TLS_DST_DIR/internal.crt | ||
fi | ||
|
||
if [ -e $TLS_SRC_DIR/private/internal.key ]; then | ||
cp $TLS_SRC_DIR/private/internal.key $TLS_DST_DIR/ | ||
chown default $TLS_DST_DIR/internal.key | ||
chmod 400 $TLS_DST_DIR/internal.key | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
set -xe | ||
|
||
cp -f /var/lib/config-data/default/httpd.conf /etc/httpd/conf/httpd.conf | ||
|
||
exec /usr/bin/run-httpd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"command": "cp -f /usr/local/apache2/conf/httpd.conf /etc/httpd/conf/httpd.conf && /usr/bin/run-httpd", | ||
"config_files": [ | ||
{ | ||
"source": "/var/lib/config-data/tls/certs/*", | ||
"dest": "/etc/pki/tls/certs/", | ||
"owner": "octavia", | ||
"perm": "0440", | ||
"optional": true, | ||
"merge": true | ||
}, | ||
{ | ||
"source": "/var/lib/config-data/tls/private/*", | ||
"dest": "/etc/pki/tls/private/", | ||
"owner": "octavia", | ||
"perm": "0400", | ||
"optional": true, | ||
"merge": true | ||
} | ||
] | ||
} |