modify task mgr to pass a server_id to mycnf template

Registered by Dan Nguyen

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://github.com/saltstack/salt/blob/develop/salt/grains/core.py#L1277

...

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(__opts__.get('id', '')) % (2 ** 31))}

...

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

Related branches

Sprints

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.