MCPcopy Create free account
hub / github.com/ceph/ceph / set_apache_servername

Function set_apache_servername

qa/tasks/devstack.py:257–266  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

255
256
257def set_apache_servername(node):
258 # Apache complains: "Could not reliably determine the server's fully
259 # qualified domain name, using 127.0.0.1 for ServerName"
260 # So, let's make sure it knows its name.
261 log.info("Setting Apache ServerName...")
262
263 hostname = node.hostname
264 config_file = '/etc/apache2/conf.d/servername'
265 config_data = "ServerName {name}".format(name=hostname)
266 node.write_file(config_file, config_data, sudo=True)
267
268
269def start_devstack(devstack_node):

Callers 1

Calls 3

infoMethod · 0.45
formatMethod · 0.45
write_fileMethod · 0.45

Tested by

no test coverage detected