modify task mgr to pass a server_id to mycnf template
We would like to pass a server_id to the mysql template to allow for mysql master slave replication.
The current thought is that we could do something like this:
(but without using Salt of course)
https:/
...
def get_server_id():
'''
Provides an integer based on the FQDN of a machine.
Useful as server-id in MySQL replication or anywhere else you'll need an ID like this.
'''
# Provides:
# server_id
return {'server_id': abs(hash(
...
we would use something like the server.id or instance_id for the hashed string.
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Dan Nguyen
- Direction:
- Needs approval
- Assignee:
- Dan Nguyen
- Definition:
- New
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Dan Nguyen
- Completed by
- Dan Nguyen
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Added server_id to my.cnf template logic
Gerrit topic: https:/