-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of running the httpd -DFOREGROUND command as entrypoint for the -httpd sidecar container, this change moves the file copy and deployment logic to kolla. This is a requirement to not run the container as root user, because kolla helps to apply the right permissions to the config files (and pid) used by the process. The switch from root user to GlanceUID (already present as const) will be part of a different patch. Signed-off-by: Francesco Pantano <[email protected]>
- Loading branch information
Showing
9 changed files
with
110 additions
and
90 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,49 @@ | ||
{ | ||
"command": "/usr/sbin/httpd -DFOREGROUND", | ||
"config_files": [ | ||
{ | ||
"source": "/var/lib/config-data/tls/certs/*", | ||
"dest": "/etc/pki/tls/certs/", | ||
"owner": "glance:glance", | ||
"perm": "0640", | ||
"optional": true, | ||
"merge": true | ||
}, | ||
{ | ||
"source": "/var/lib/config-data/tls/private/*", | ||
"dest": "/etc/pki/tls/private/", | ||
"owner": "glance:glance", | ||
"perm": "0640", | ||
"optional": true, | ||
"merge": true | ||
}, | ||
{ | ||
"source": "/var/lib/config-data/default/httpd.conf", | ||
"dest": "/etc/httpd/conf/httpd.conf", | ||
"owner": "glance:apache", | ||
"optional": true, | ||
"perm": "0644" | ||
}, | ||
{ | ||
"source": "/var/lib/config-data/default/10-glance-httpd.conf", | ||
"dest": "/etc/httpd/conf.d/10-glance.conf", | ||
"owner": "glance:apache", | ||
"optional": true, | ||
"perm": "0644" | ||
}, | ||
{ | ||
"source": "/var/lib/config-data/default/ssl.conf", | ||
"dest": "/etc/httpd/conf.d/ssl.conf", | ||
"owner": "glance:apache", | ||
"optional": true, | ||
"perm": "0644" | ||
} | ||
], | ||
"permissions": [ | ||
{ | ||
"path": "/etc/httpd/run", | ||
"owner": "glance:apache", | ||
"recurse": true | ||
} | ||
] | ||
} |
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
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