def task_install_control_certificates(ca_cert, control_cert, control_key):
 return sequence([run('mkdir -p /etc/flocker'), run('chmod u=rwX,g=,o= /etc/flocker'), put(path='/etc/flocker/cluster.crt', content=ca_cert.getContent()), put(path='/etc/flocker/control-service.crt', content=control_cert.getContent()), put(path='/etc/flocker/control-service.key', content=control_key.getContent(), log_content_filter=_remove_private_key)])

def task_install_control_certificates ( ca_cert , control_cert , control_key ) : return sequence ( [ run ( 'mkdir -p /etc/flocker' ) , run ( 'chmod u=rwX,g=,o= /etc/flocker' ) , put ( path = '/etc/flocker/cluster.crt' , content = ca_cert . getContent ( ) ) , put ( path = '/etc/flocker/control-service.crt' , content = control_cert . getContent ( ) ) , put ( path = '/etc/flocker/control-service.key' , content = control_key . getContent ( ) , log_content_filter = _remove_private_key ) ] )
install certificates and private key required by the control service .